2017-12-31 11:48:00 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pytest
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "iso8601";
|
2017-12-31 11:48:14 +01:00
|
|
|
version = "0.1.12";
|
2017-12-31 11:48:00 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2017-12-31 11:48:14 +01:00
|
|
|
sha256 = "49c4b20e1f38aa5cf109ddcd39647ac419f928512c869dc01d5c7098eddede82";
|
2017-12-31 11:48:00 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ pytest ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
py.test iso8601
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = https://bitbucket.org/micktwomey/pyiso8601/;
|
|
|
|
description = "Simple module to parse ISO 8601 dates";
|
|
|
|
maintainers = with lib.maintainers; [ phreedom ];
|
|
|
|
};
|
|
|
|
}
|