Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / iso8601 / default.nix
blobade0c71ee887d2c465cb64bdc65bb0a1c8f4a28e
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , hypothesis
5 , poetry-core
6 , pytestCheckHook
7 , pytz
8 , pythonOlder
9 }:
11 buildPythonPackage rec {
12   pname = "iso8601";
13   version = "2.0.0";
14   format = "pyproject";
16   disabled = pythonOlder "3.7";
18   src = fetchPypi {
19     inherit pname version;
20     hash = "sha256-c5lg03x0x3vZvVRqdlYsy1gf49SCD/XDFB60nIOf2o8=";
21   };
23   nativeBuildInputs = [
24     poetry-core
25   ];
27   nativeCheckInputs = [
28     hypothesis
29     pytestCheckHook
30     pytz
31   ];
33   pytestFlagsArray = [
34     "iso8601"
35   ];
37   pythonImportsCheck = [
38     "iso8601"
39   ];
41   meta = with lib; {
42     description = "Simple module to parse ISO 8601 dates";
43     homepage = "https://pyiso8601.readthedocs.io/";
44     license = with licenses; [ mit ];
45     maintainers = with maintainers; [ fab ];
46   };