nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 37 lines 862 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 pytestCheckHook, 7}: 8 9buildPythonPackage (finalAttrs: { 10 version = "5.2"; 11 pname = "roman"; 12 pyproject = true; 13 14 src = fetchFromGitHub { 15 owner = "zopefoundation"; 16 repo = "roman"; 17 tag = finalAttrs.version; 18 hash = "sha256-ZtwHlS3V18EqDXJxTTwfUdtOvyQg9GbSArV7sOs1b38="; 19 }; 20 21 build-system = [ setuptools ]; 22 23 pythonImportsCheck = [ "roman" ]; 24 25 nativeCheckInputs = [ pytestCheckHook ]; 26 27 enabledTestPaths = [ "src/tests.py" ]; 28 29 meta = { 30 description = "Integer to Roman numerals converter"; 31 changelog = "https://github.com/zopefoundation/roman/blob/${finalAttrs.version}/CHANGES.rst"; 32 homepage = "https://pypi.python.org/pypi/roman"; 33 license = lib.licenses.psfl; 34 maintainers = with lib.maintainers; [ sigmanificient ]; 35 mainProgram = "roman"; 36 }; 37})