summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/roman/default.nix
blob: ccda094ade4c42e37d89bc7f21d5976a93edef64 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  pytestCheckHook,
}:

buildPythonPackage (finalAttrs: {
  version = "5.2";
  pname = "roman";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "zopefoundation";
    repo = "roman";
    tag = finalAttrs.version;
    hash = "sha256-ZtwHlS3V18EqDXJxTTwfUdtOvyQg9GbSArV7sOs1b38=";
  };

  build-system = [ setuptools ];

  pythonImportsCheck = [ "roman" ];

  nativeCheckInputs = [ pytestCheckHook ];

  enabledTestPaths = [ "src/tests.py" ];

  meta = {
    description = "Integer to Roman numerals converter";
    changelog = "https://github.com/zopefoundation/roman/blob/${finalAttrs.version}/CHANGES.rst";
    homepage = "https://pypi.python.org/pypi/roman";
    license = lib.licenses.psfl;
    maintainers = with lib.maintainers; [ sigmanificient ];
    mainProgram = "roman";
  };
})