Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / ciso8601 / default.nix
blob5a5a8f3246b0f57541e16f08c88bfa2df9079837
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , setuptools
5 , pytestCheckHook
6 , pytz
7 }:
9 buildPythonPackage rec {
10   pname = "ciso8601";
11   version = "2.3.0";
12   format = "pyproject";
14   src = fetchFromGitHub {
15     owner = "closeio";
16     repo = "ciso8601";
17     rev = "refs/tags/v${version}";
18     hash = "sha256-qTpt91Wf3L6Jl7FU8sn9PvGMRd/cjhQ1mQvUaQeLFQU=";
19   };
21   nativeBuildInputs = [
22     setuptools
23   ];
25   nativeCheckInputs = [
26     pytestCheckHook
27     pytz
28   ];
30   pytestFlagsArray = [
31     "tests/tests.py"
32   ];
34   pythonImportsCheck = [ "ciso8601" ];
36   meta = with lib; {
37     description = "Fast ISO8601 date time parser for Python written in C";
38     homepage = "https://github.com/closeio/ciso8601";
39     license = licenses.mit;
40     maintainers = with maintainers; [ mic92 ];
41   };