mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-09 14:33:22 +00:00
02dab4ab5c
Long term we should move everything over to `pyproject = true`, but in the mean time we can work towards deprecating the implicit `format` paremeter. cc https://github.com/NixOS/nixpkgs/issues/253154 cc @mweinelt @figsoda
37 lines
712 B
Nix
37 lines
712 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, python-dateutil
|
|
, fetchPypi
|
|
, isPy3k
|
|
, mock
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "aniso8601";
|
|
version = "9.0.1";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-cuMRdmfu32aVG7LZP0KWpWuUsHioqVkFoFJhH7PxuXM=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
python-dateutil
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
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 ];
|
|
};
|
|
}
|