nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 33 lines 762 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 pytestCheckHook, 6 setuptools, 7}: 8 9buildPythonPackage rec { 10 pname = "pytimeparse"; 11 version = "1.1.8"; 12 pyproject = true; 13 14 src = fetchPypi { 15 inherit pname version; 16 hash = "sha256-6GE2R3vpJNfmcGRqmFYZV+jKcwjUSEHiH13ep1dVago="; 17 }; 18 19 build-system = [ setuptools ]; 20 21 nativeCheckInputs = [ pytestCheckHook ]; 22 enabledTestPaths = [ "pytimeparse/tests/testtimeparse.py" ]; 23 24 pythonImportsCheck = [ "pytimeparse" ]; 25 26 meta = { 27 description = "Library to parse various kinds of time expressions"; 28 homepage = "https://github.com/wroberts/pytimeparse"; 29 changelog = "https://github.com/wroberts/pytimeparse/releases/tag/${version}"; 30 license = lib.licenses.mit; 31 maintainers = [ ]; 32 }; 33}