depot/third_party/nixpkgs/pkgs/development/python-modules/tempora/default.nix
Default email 81047829ea Project import generated by Copybara.
GitOrigin-RevId: 48d63e924a2666baf37f4f14a18f19347fbd54a2
2022-02-10 15:34:41 -05:00

36 lines
908 B
Nix

{ lib, buildPythonPackage, fetchPypi
, setuptools-scm, pytest, pytest-freezegun, freezegun, backports_unittest-mock
, six, pytz, jaraco_functools, pythonOlder
, pytest-flake8, pytest-cov, pytest-black, pytest-mypy
}:
buildPythonPackage rec {
pname = "tempora";
version = "5.0.0";
src = fetchPypi {
inherit pname version;
sha256 = "aa21dd1956e29559ecb2f2f2e14fcdb950085222fbbf86e6c946b5e1a8c36b26";
};
disabled = pythonOlder "3.2";
nativeBuildInputs = [ setuptools-scm ];
propagatedBuildInputs = [ six pytz jaraco_functools ];
checkInputs = [
pytest-freezegun pytest freezegun backports_unittest-mock
pytest-flake8 pytest-cov pytest-black pytest-mypy
];
checkPhase = ''
pytest
'';
meta = with lib; {
description = "Objects and routines pertaining to date and time";
homepage = "https://github.com/jaraco/tempora";
license = licenses.mit;
};
}