aboutsummaryrefslogtreecommitdiffstats
path: root/pkgs/development/python-modules/isodate
diff options
context:
space:
mode:
authorStefan Siegl <stesie@brokenpipe.de>2018-09-10 18:33:48 +0200
committerStefan Siegl <stesie@brokenpipe.de>2018-09-10 18:33:48 +0200
commitb6714f59cce26ddc831ca4a213e8f56476184fb1 (patch)
tree48abe892298c6d9e77d48e9de7d848af9beee71d /pkgs/development/python-modules/isodate
initial commit
Diffstat (limited to 'pkgs/development/python-modules/isodate')
-rw-r--r--pkgs/development/python-modules/isodate/default.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/isodate/default.nix b/pkgs/development/python-modules/isodate/default.nix
new file mode 100644
index 0000000..72ad4c2
--- /dev/null
+++ b/pkgs/development/python-modules/isodate/default.nix
@@ -0,0 +1,27 @@
+{ stdenv, buildPythonPackage, fetchPypi, python, isPy3k, six }:
+
+buildPythonPackage rec {
+ pname = "isodate";
+ version = "0.6.0";
+
+ src = fetchPypi {
+ inherit pname version;
+ sha256 = "1n7jkz68kk5pwni540pr5zdh99bf6ywydk1p5pdrqisrawylldif";
+ };
+
+ propagatedBuildInputs = [ six ];
+
+ # Judging from SyntaxError
+ doCheck = !(isPy3k);
+
+ checkPhase = ''
+ ${python.interpreter} -m unittest discover -s src/isodate/tests
+ '';
+
+ meta = with stdenv.lib; {
+ description = "ISO 8601 date/time parser";
+ homepage = http://cheeseshop.python.org/pypi/isodate;
+ license = licenses.bsd3;
+ maintainers = with maintainers; [ stesie ];
+ };
+}