mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 18:26:45 +01:00
36 lines
669 B
Nix
36 lines
669 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, dateutil
|
|
, fetchPypi
|
|
, isPy3k
|
|
, mock
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "aniso8601";
|
|
version = "9.0.1";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-cuMRdmfu32aVG7LZP0KWpWuUsHioqVkFoFJhH7PxuXM=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
dateutil
|
|
];
|
|
|
|
checkInputs = [
|
|
pytestCheckHook
|
|
] ++ lib.optional (!isPy3k) mock;
|
|
|
|
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 ];
|
|
};
|
|
}
|