nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, buildPythonPackage
3, fetchPypi
4, python
5, six
6}:
7
8buildPythonPackage rec {
9 pname = "isodate";
10 version = "0.6.1";
11
12 src = fetchPypi {
13 inherit pname version;
14 sha256 = "SMWIHefosKDWSMsCTIBi3ITnuEDtgehkx2FP08Envek=";
15 };
16
17 propagatedBuildInputs = [ six ];
18
19 checkPhase = ''
20 ${python.interpreter} -m unittest discover -s src/isodate/tests
21 '';
22
23 meta = with lib; {
24 description = "ISO 8601 date/time parser";
25 homepage = "http://cheeseshop.python.org/pypi/isodate";
26 license = licenses.bsd0;
27 };
28
29}