nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 hypothesis,
6 poetry-core,
7 pytestCheckHook,
8 pytz,
9}:
10
11buildPythonPackage rec {
12 pname = "iso8601";
13 version = "2.1.0";
14 pyproject = true;
15
16 src = fetchPypi {
17 inherit pname version;
18 hash = "sha256-ax04Ke6JIcQwGZjJCfeCn6ntPL2sDTsWry10Ou0bqN8=";
19 };
20
21 nativeBuildInputs = [ poetry-core ];
22
23 nativeCheckInputs = [
24 hypothesis
25 pytestCheckHook
26 pytz
27 ];
28
29 enabledTestPaths = [ "iso8601" ];
30
31 pythonImportsCheck = [ "iso8601" ];
32
33 meta = {
34 description = "Simple module to parse ISO 8601 dates";
35 homepage = "https://pyiso8601.readthedocs.io/";
36 changelog = "https://github.com/micktwomey/pyiso8601/blob/${version}/CHANGELOG.md";
37 license = with lib.licenses; [ mit ];
38 maintainers = with lib.maintainers; [ fab ];
39 };
40}