Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / convertdate / 2.2.x.nix
blobd67f4c5a3449d3228319ae4a7d66a3c5e4dbd3bd
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pymeeus
5 , pytz
6 , pytestCheckHook
7 }:
9 buildPythonPackage rec {
10   pname = "convertdate";
11   version = "2.2.2";
13   # Tests are not available in the PyPI tarball so use GitHub instead.
14   src = fetchFromGitHub {
15     owner = "fitnr";
16     repo = pname;
17     rev = "v${version}";
18     sha256 = "1xgi7x9b9kxm0q51bqnmwdm5lp8vwhx5yk4d1b23r37spz9dbhw5";
19   };
21   propagatedBuildInputs = [
22     pymeeus
23     pytz
24   ];
26   checkInputs = [
27     pytestCheckHook
28   ];
30   meta = with lib; {
31     homepage = "https://github.com/fitnr/convertdate";
32     description = "Utils for converting between date formats and calculating holidays";
33     license = licenses.mit;
34     maintainers = with maintainers; [ jluttine ];
35   };