Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09-beta 23 lines 674 B view raw
1{ stdenv, buildPythonPackage, fetchFromGitHub, pymeeus, pytz }: 2 3buildPythonPackage rec { 4 pname = "convertdate"; 5 version = "2.2.1"; 6 7 # Tests are not available in the PyPI tarball so use GitHub instead. 8 src = fetchFromGitHub { 9 owner = "fitnr"; 10 repo = pname; 11 rev = "v${version}"; 12 sha256 = "1xgi7x9b9kxm0q51bqnmwdm5lp8vwhx5yk4d1b23r37spz9dbhw5"; 13 }; 14 15 propagatedBuildInputs = [ pymeeus pytz ]; 16 17 meta = with stdenv.lib; { 18 homepage = "https://github.com/fitnr/convertdate"; 19 description = "Utils for converting between date formats and calculating holidays"; 20 license = licenses.mit; 21 maintainers = with maintainers; [ jluttine ]; 22 }; 23}