nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at r-updates 37 lines 747 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 flit-core, 6 pytestCheckHook, 7}: 8 9buildPythonPackage rec { 10 pname = "pep440"; 11 version = "0.1.2"; 12 pyproject = true; 13 14 src = fetchPypi { 15 inherit pname version; 16 hash = "sha256-WLNyRswrE/7hyio8CSyzcE0h7PYhpb27Fo5E5pf20E0="; 17 }; 18 19 nativeBuildInputs = [ flit-core ]; 20 21 nativeCheckInputs = [ pytestCheckHook ]; 22 23 disabledTestPaths = [ 24 # Don't run CLI tests 25 "tests/test_cli.py" 26 ]; 27 28 pythonImportsCheck = [ "pep440" ]; 29 30 meta = { 31 description = "Python module to check whether versions number match PEP 440"; 32 mainProgram = "pep440"; 33 homepage = "https://github.com/Carreau/pep440"; 34 license = lib.licenses.mit; 35 maintainers = with lib.maintainers; [ fab ]; 36 }; 37}