nixpkgs/pkgs/development/python-modules/ciso8601/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

43 lines
785 B
Nix
Raw Normal View History

2020-03-18 15:45:39 +00:00
{ lib
, buildPythonPackage
, fetchFromGitHub
, setuptools
, pytestCheckHook
2020-03-18 15:45:39 +00:00
, pytz
}:
buildPythonPackage rec {
pname = "ciso8601";
version = "2.3.0";
format = "pyproject";
2020-03-18 15:45:39 +00:00
src = fetchFromGitHub {
owner = "closeio";
repo = "ciso8601";
rev = "refs/tags/v${version}";
hash = "sha256-qTpt91Wf3L6Jl7FU8sn9PvGMRd/cjhQ1mQvUaQeLFQU=";
2020-03-18 15:45:39 +00:00
};
nativeBuildInputs = [
setuptools
];
nativeCheckInputs = [
pytestCheckHook
2020-03-18 15:45:39 +00:00
pytz
];
pytestFlagsArray = [
"tests/tests.py"
];
pythonImportsCheck = [ "ciso8601" ];
2020-03-18 15:45:39 +00:00
meta = with lib; {
description = "Fast ISO8601 date time parser for Python written in C";
homepage = "https://github.com/closeio/ciso8601";
license = licenses.mit;
maintainers = with maintainers; [ mic92 ];
2020-03-18 15:45:39 +00:00
};
}