nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 45 lines 976 B view raw
1{ 2 lib, 3 arrow, 4 buildPythonPackage, 5 fetchFromGitHub, 6 freezegun, 7 pytestCheckHook, 8 pytz, 9 setuptools, 10}: 11 12buildPythonPackage rec { 13 pname = "python-datemath"; 14 version = "3.0.3"; 15 pyproject = true; 16 17 src = fetchFromGitHub { 18 owner = "nickmaccarthy"; 19 repo = "python-datemath"; 20 tag = "v${version}"; 21 hash = "sha256-VwdY6Gmbmoy7EKZjUlWj56uSiE0OdegPiQv+rmigkq8="; 22 }; 23 24 build-system = [ setuptools ]; 25 26 dependencies = [ arrow ]; 27 28 nativeCheckInputs = [ 29 freezegun 30 pytestCheckHook 31 pytz 32 ]; 33 34 enabledTestPaths = [ "tests.py" ]; 35 36 pythonImportsCheck = [ "datemath" ]; 37 38 meta = { 39 description = "Python module to emulate the date math used in SOLR and Elasticsearch"; 40 homepage = "https://github.com/nickmaccarthy/python-datemath"; 41 changelog = "https://github.com/nickmaccarthy/python-datemath/blob/v${version}/CHANGELOG.md"; 42 license = with lib.licenses; [ asl20 ]; 43 maintainers = with lib.maintainers; [ fab ]; 44 }; 45}