Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / isoduration / default.nix
blobe37e44361a10084452bae7129be4a6e21ac06e85
1 { lib
2 , arrow
3 , buildPythonPackage
4 , fetchFromGitHub
5 , hypothesis
6 , isodate
7 , pytestCheckHook
8 , pythonOlder
9 }:
11 buildPythonPackage rec {
12   pname = "isoduration";
13   version = "20.11.0";
14   format = "setuptools";
16   disabled = pythonOlder "3.7";
18   src = fetchFromGitHub {
19     owner = "bolsote";
20     repo = pname;
21     rev = version;
22     hash = "sha256-6LqsH+3V/K0s2YD1gvmelo+cCH+yCAmmyTYGhUegVdk=";
23   };
25   propagatedBuildInputs = [
26     arrow
27   ];
29   nativeCheckInputs = [
30     hypothesis
31     isodate
32     pytestCheckHook
33   ];
35   disabledTestPaths = [
36     # We don't care about benchmarks
37     "tests/test_benchmark.py"
38   ];
40   pythonImportsCheck = [
41     "isoduration"
42   ];
44   meta = with lib; {
45     description = "Library for operations with ISO 8601 durations";
46     homepage = "https://github.com/bolsote/isoduration";
47     license = licenses.isc;
48     maintainers = with maintainers; [ fab ];
49   };