2021-04-27 16:10:08 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2021-07-03 11:37:24 +00:00
|
|
|
, python-dateutil
|
2021-04-27 16:10:08 +00:00
|
|
|
, fetchPypi
|
|
|
|
, isPy3k
|
|
|
|
, mock
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
2017-07-19 10:29:13 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aniso8601";
|
2021-03-24 09:28:08 +00:00
|
|
|
version = "9.0.1";
|
2017-07-19 10:29:13 +00:00
|
|
|
|
2021-04-27 16:10:08 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "sha256-cuMRdmfu32aVG7LZP0KWpWuUsHioqVkFoFJhH7PxuXM=";
|
2017-07-19 10:29:13 +00:00
|
|
|
};
|
|
|
|
|
2021-04-27 16:10:08 +00:00
|
|
|
propagatedBuildInputs = [
|
2021-07-03 11:37:24 +00:00
|
|
|
python-dateutil
|
2021-04-27 16:10:08 +00:00
|
|
|
];
|
2017-07-19 10:29:13 +00:00
|
|
|
|
2021-04-27 16:10:08 +00:00
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
] ++ lib.optional (!isPy3k) mock;
|
2019-01-17 09:44:56 +00:00
|
|
|
|
2021-04-27 16:10:08 +00:00
|
|
|
pythonImportsCheck = [ "aniso8601" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python Parser for ISO 8601 strings";
|
|
|
|
homepage = "https://bitbucket.org/nielsenb/aniso8601";
|
|
|
|
license = with licenses; [ bsd3 ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
2017-07-19 10:29:13 +00:00
|
|
|
};
|
|
|
|
}
|