mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-19 00:08:32 +01:00
pythonPackages.convertdate: add python2-compatible expression
This commit is contained in:
parent
fd67fc5dd4
commit
e1d60a05af
2 changed files with 40 additions and 1 deletions
36
pkgs/development/python-modules/convertdate/2.2.x.nix
Normal file
36
pkgs/development/python-modules/convertdate/2.2.x.nix
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
, pymeeus
|
||||||
|
, pytz
|
||||||
|
, pytestCheckHook
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "convertdate";
|
||||||
|
version = "2.2.2";
|
||||||
|
|
||||||
|
# Tests are not available in the PyPI tarball so use GitHub instead.
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "fitnr";
|
||||||
|
repo = pname;
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "1xgi7x9b9kxm0q51bqnmwdm5lp8vwhx5yk4d1b23r37spz9dbhw5";
|
||||||
|
};
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
pymeeus
|
||||||
|
pytz
|
||||||
|
];
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
homepage = "https://github.com/fitnr/convertdate";
|
||||||
|
description = "Utils for converting between date formats and calculating holidays";
|
||||||
|
license = licenses.mit;
|
||||||
|
maintainers = with maintainers; [ jluttine ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -1472,7 +1472,10 @@ in {
|
||||||
|
|
||||||
contextvars = callPackage ../development/python-modules/contextvars { };
|
contextvars = callPackage ../development/python-modules/contextvars { };
|
||||||
|
|
||||||
convertdate = callPackage ../development/python-modules/convertdate { };
|
convertdate = if isPy27 then
|
||||||
|
callPackage ../development/python-modules/convertdate/2.2.x.nix { }
|
||||||
|
else
|
||||||
|
callPackage ../development/python-modules/convertdate { };
|
||||||
|
|
||||||
cookiecutter = callPackage ../development/python-modules/cookiecutter { };
|
cookiecutter = callPackage ../development/python-modules/cookiecutter { };
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue