nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 47 lines 870 B view raw
1{ lib 2, arrow 3, buildPythonPackage 4, fetchFromGitHub 5, pythonOlder 6, pytestCheckHook 7, unittest2 8}: 9 10buildPythonPackage rec { 11 pname = "python-datemath"; 12 version = "1.5.5"; 13 format = "setuptools"; 14 15 disabled = pythonOlder "3.8"; 16 17 src = fetchFromGitHub { 18 owner = "nickmaccarthy"; 19 repo = pname; 20 rev = "v${version}"; 21 sha256 = "sha256-WVWGhyBguE1+KEMQu0N5QxO7IC4rPEJ/2L3VWUCQNi4="; 22 }; 23 24 propagatedBuildInputs = [ 25 arrow 26 ]; 27 28 checkInputs = [ 29 pytestCheckHook 30 unittest2 31 ]; 32 33 pytestFlagsArray = [ 34 "tests.py" 35 ]; 36 37 pythonImportsCheck = [ 38 "datemath" 39 ]; 40 41 meta = with lib; { 42 description = "Python module to emulate the date math used in SOLR and Elasticsearch"; 43 homepage = "https://github.com/nickmaccarthy/python-datemath"; 44 license = with licenses; [ asl20 ]; 45 maintainers = with maintainers; [ fab ]; 46 }; 47}