1{ lib
2, buildPythonPackage
3, fetchPypi
4, pytest
5}:
6
7buildPythonPackage rec {
8 pname = "iso8601";
9 version = "0.1.12";
10
11 src = fetchPypi {
12 inherit pname version;
13 sha256 = "49c4b20e1f38aa5cf109ddcd39647ac419f928512c869dc01d5c7098eddede82";
14 };
15
16 checkInputs = [ pytest ];
17
18 checkPhase = ''
19 py.test iso8601
20 '';
21
22 meta = {
23 homepage = https://bitbucket.org/micktwomey/pyiso8601/;
24 description = "Simple module to parse ISO 8601 dates";
25 maintainers = with lib.maintainers; [ phreedom ];
26 };
27}