nixpkgs/pkgs/development/python-modules/tempora/default.nix

38 lines
872 B
Nix
Raw Normal View History

{ lib, buildPythonPackage, fetchPypi
2020-06-25 10:24:38 +01:00
, setuptools_scm, pytest, pytest-freezegun, freezegun, backports_unittest-mock
, six, pytz, jaraco_functools, pythonOlder }:
buildPythonPackage rec {
pname = "tempora";
2020-06-06 07:47:33 +01:00
version = "3.0.0";
src = fetchPypi {
inherit pname version;
2020-06-06 07:47:33 +01:00
sha256 = "e370d822cf48f5356aab0734ea45807250f5120e291c76712a1d766b49ae34f8";
};
disabled = pythonOlder "3.2";
2020-06-22 23:33:46 +01:00
nativeBuildInputs = [ setuptools_scm ];
2020-06-25 10:24:38 +01:00
patches = [
./0001-pytest-remove-flake8-black-coverage.patch
];
propagatedBuildInputs = [ six pytz jaraco_functools ];
2020-06-25 10:24:38 +01:00
checkInputs = [
pytest-freezegun pytest freezegun backports_unittest-mock
];
2019-07-21 10:21:00 +01:00
checkPhase = ''
2020-06-25 10:24:38 +01:00
pytest
2019-07-21 10:21:00 +01:00
'';
meta = with lib; {
description = "Objects and routines pertaining to date and time";
homepage = "https://github.com/jaraco/tempora";
license = licenses.mit;
};
}