depot/third_party/nixpkgs/pkgs/development/python-modules/tempora/default.nix
Default email 58f8944c92 Project import generated by Copybara.
GitOrigin-RevId: 5aba0fe9766a7201a336249fd6cb76e0d7ba2faf
2020-09-24 23:45:31 -05:00

36 lines
906 B
Nix

{ lib, buildPythonPackage, fetchPypi
, setuptools_scm, pytest, pytest-freezegun, freezegun, backports_unittest-mock
, six, pytz, jaraco_functools, pythonOlder
, pytest-flake8, pytestcov, pytest-black, pytest-mypy
}:
buildPythonPackage rec {
pname = "tempora";
version = "4.0.0";
src = fetchPypi {
inherit pname version;
sha256 = "599a3a910b377f2b544c7b221582ecf4cb049b017c994b37f2b1a9ed1099716e";
};
disabled = pythonOlder "3.2";
nativeBuildInputs = [ setuptools_scm ];
propagatedBuildInputs = [ six pytz jaraco_functools ];
checkInputs = [
pytest-freezegun pytest freezegun backports_unittest-mock
pytest-flake8 pytestcov 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;
};
}