Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / frozenlist / default.nix
blob06ff0d1c7dcc323d8cecbe664ba0470ba5ba9e37
1 { lib
2 , buildPythonPackage
3 , cython
4 , fetchFromGitHub
5 , pytestCheckHook
6 , pythonOlder
7 , setuptools
8 , wheel
9 }:
11 buildPythonPackage rec {
12   pname = "frozenlist";
13   version = "1.4.0";
14   format = "pyproject";
16   disabled = pythonOlder "3.7";
18   src = fetchFromGitHub {
19     owner = "aio-libs";
20     repo = pname;
21     rev = "refs/tags/v${version}";
22     hash = "sha256-sI6jnrTxDbW0sNVodpCjBnA31VAAmunwMp9s8GkoHGI=";
23   };
25   nativeBuildInputs = [
26     cython
27     setuptools
28     wheel
29   ];
31   postPatch = ''
32     sed -i "/addopts =/d" pytest.ini
33   '';
35   preBuild = ''
36     cython frozenlist/_frozenlist.pyx
37   '';
39   pythonImportsCheck = [
40     "frozenlist"
41   ];
43   nativeCheckInputs = [
44     pytestCheckHook
45   ];
47   meta = with lib; {
48     description = "Python module for list-like structure";
49     homepage = "https://github.com/aio-libs/frozenlist";
50     license = with licenses; [ asl20 ];
51     maintainers = with maintainers; [ fab ];
52   };