1{ lib 2, buildPythonPackage 3, isPy27 4, fetchFromGitHub 5, pymeeus 6, pytz 7, pytestCheckHook 8}: 9 10buildPythonPackage rec { 11 pname = "convertdate"; 12 version = "2.3.2"; 13 disabled = isPy27; 14 15 # Tests are not available in the PyPI tarball so use GitHub instead. 16 src = fetchFromGitHub { 17 owner = "fitnr"; 18 repo = pname; 19 rev = "v${version}"; 20 sha256 = "0k7j59sbqwyi72vcjx5vsh3qb6hxfnkfjkd2i6f6lckdr1bkh7fz"; 21 }; 22 23 propagatedBuildInputs = [ 24 pymeeus 25 pytz 26 ]; 27 28 checkInputs = [ 29 pytestCheckHook 30 ]; 31 32 pythonImportsCheck = [ "convertdate" ]; 33 34 meta = with lib; { 35 homepage = "https://github.com/fitnr/convertdate"; 36 description = "Utils for converting between date formats and calculating holidays"; 37 license = licenses.mit; 38 maintainers = with maintainers; [ jluttine ]; 39 }; 40}