mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-17 22:28:55 +00:00
32 lines
657 B
Nix
32 lines
657 B
Nix
{ lib, fetchPypi, buildPythonPackage, pythonOlder
|
|
, dateutil, pytzdata, typing
|
|
, poetry-core
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pendulum";
|
|
version = "2.1.2";
|
|
|
|
format = "pyproject";
|
|
|
|
nativeBuildInputs = [
|
|
poetry-core
|
|
];
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "b06a0ca1bfe41c990bbf0c029f0b6501a7f2ec4e38bfec730712015e8860f207";
|
|
};
|
|
|
|
propagatedBuildInputs = [ dateutil pytzdata ] ++ lib.optional (pythonOlder "3.5") typing;
|
|
|
|
# No tests
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
description = "Python datetimes made easy";
|
|
homepage = "https://github.com/sdispater/pendulum";
|
|
license = licenses.mit;
|
|
};
|
|
}
|