blob: 06ff0d1c7dcc323d8cecbe664ba0470ba5ba9e37 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
{ lib
, buildPythonPackage
, cython
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
, setuptools
, wheel
}:
buildPythonPackage rec {
pname = "frozenlist";
version = "1.4.0";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "aio-libs";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-sI6jnrTxDbW0sNVodpCjBnA31VAAmunwMp9s8GkoHGI=";
};
nativeBuildInputs = [
cython
setuptools
wheel
];
postPatch = ''
sed -i "/addopts =/d" pytest.ini
'';
preBuild = ''
cython frozenlist/_frozenlist.pyx
'';
pythonImportsCheck = [
"frozenlist"
];
nativeCheckInputs = [
pytestCheckHook
];
meta = with lib; {
description = "Python module for list-like structure";
homepage = "https://github.com/aio-libs/frozenlist";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ fab ];
};
}
|