aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/development/python-modules/tempora/default.nix
diff options
context:
space:
mode:
authorKatharina Fey <kookie@spacekookie.de>2019-10-05 12:43:18 +0000
committerKatharina Fey <kookie@spacekookie.de>2019-10-05 12:44:52 +0000
commitcf85056ba64caf3267d43255ef4a1243e9c8ee3b (patch)
tree3051519e9c8275b870aac43f80af875715c9d124 /nixpkgs/pkgs/development/python-modules/tempora/default.nix
parent1148b1d122bc03e9a3665856c9b7bb96bd4e3994 (diff)
parent2436c27541b2f52deea3a4c1691216a02152e729 (diff)
Add 'nixpkgs/' from commit '2436c27541b2f52deea3a4c1691216a02152e729'
git-subtree-dir: nixpkgs git-subtree-mainline: 1148b1d122bc03e9a3665856c9b7bb96bd4e3994 git-subtree-split: 2436c27541b2f52deea3a4c1691216a02152e729
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/tempora/default.nix')
-rw-r--r--nixpkgs/pkgs/development/python-modules/tempora/default.nix30
1 files changed, 30 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/tempora/default.nix b/nixpkgs/pkgs/development/python-modules/tempora/default.nix
new file mode 100644
index 00000000000..10de193866b
--- /dev/null
+++ b/nixpkgs/pkgs/development/python-modules/tempora/default.nix
@@ -0,0 +1,30 @@
+{ lib, buildPythonPackage, fetchPypi
+, setuptools_scm, pytest, freezegun, backports_unittest-mock
+, six, pytz, jaraco_functools }:
+
+buildPythonPackage rec {
+ pname = "tempora";
+ version = "1.14.1";
+
+ src = fetchPypi {
+ inherit pname version;
+ sha256 = "cb60b1d2b1664104e307f8e5269d7f4acdb077c82e35cd57246ae14a3427d2d6";
+ };
+
+ 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;
+ };
+}