blob: 6b428ba551960ae24b76bd995c06c96ebc675e40 (
plain)
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
|
{
lib,
buildPythonPackage,
cython,
expandvars,
fetchFromGitHub,
pep517,
pytestCheckHook,
setuptools,
wheel,
}:
buildPythonPackage rec {
pname = "frozenlist";
version = "1.7.0";
pyproject = true;
src = fetchFromGitHub {
owner = "aio-libs";
repo = "frozenlist";
tag = "v${version}";
hash = "sha256-aBHX/U1L2mcah80edJFY/iXsM05DVas7lJT8yVTjER8=";
};
postPatch = ''
rm pytest.ini
'';
nativeBuildInputs = [
expandvars
cython
pep517
setuptools
wheel
];
nativeCheckInputs = [ pytestCheckHook ];
preBuild = ''
cython frozenlist/_frozenlist.pyx
'';
pythonImportsCheck = [ "frozenlist" ];
meta = {
description = "Python module for list-like structure";
homepage = "https://github.com/aio-libs/frozenlist";
changelog = "https://github.com/aio-libs/frozenlist/blob/${src.tag}/CHANGES.rst";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ fab ];
};
}
|