depot/third_party/nixpkgs/pkgs/development/python-modules/tempora/default.nix
Default email 2ce89355c3 Project import generated by Copybara.
GitOrigin-RevId: 22a81aa5fc15b2d41b12f7160a71cd4a9f3c3fa1
2020-06-15 17:56:04 +02:00

30 lines
763 B
Nix

{ lib, buildPythonPackage, fetchPypi
, setuptools_scm, pytest, freezegun, backports_unittest-mock
, six, pytz, jaraco_functools }:
buildPythonPackage rec {
pname = "tempora";
version = "3.0.0";
src = fetchPypi {
inherit pname version;
sha256 = "e370d822cf48f5356aab0734ea45807250f5120e291c76712a1d766b49ae34f8";
};
buildInputs = [ setuptools_scm ];
propagatedBuildInputs = [ six pytz jaraco_functools ];
checkInputs = [ pytest freezegun backports_unittest-mock ];
checkPhase = ''
substituteInPlace pytest.ini --replace "--flake8" ""
pytest
'';
meta = with lib; {
description = "Objects and routines pertaining to date and time";
homepage = "https://github.com/jaraco/tempora";
license = licenses.mit;
};
}