Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / aniso8601 / default.nix
blob5e22e6f87addc1d5c0821d52a6a30b05b4c0f513
1 { lib
2 , buildPythonPackage
3 , python-dateutil
4 , fetchPypi
5 , isPy3k
6 , mock
7 , pytestCheckHook
8 }:
10 buildPythonPackage rec {
11   pname = "aniso8601";
12   version = "9.0.1";
14   src = fetchPypi {
15     inherit pname version;
16     hash = "sha256-cuMRdmfu32aVG7LZP0KWpWuUsHioqVkFoFJhH7PxuXM=";
17   };
19   propagatedBuildInputs = [
20     python-dateutil
21   ];
23   nativeCheckInputs = [
24     pytestCheckHook
25   ] ++ lib.optional (!isPy3k) mock;
27   pythonImportsCheck = [ "aniso8601" ];
29   meta = with lib; {
30     description = "Python Parser for ISO 8601 strings";
31     homepage = "https://bitbucket.org/nielsenb/aniso8601";
32     license = with licenses; [ bsd3 ];
33     maintainers = with maintainers; [ fab ];
34   };