diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2021-05-25 17:38:18 +0200 |
---|---|---|
committer | Fabian Affolter <mail@fabian-affolter.ch> | 2021-05-25 17:38:18 +0200 |
commit | 4a1c0cdba8b5ad8e9b87e5ecfecc816a3ad30658 (patch) | |
tree | 0060860b062c9e9f2c8848344c5dba8694cac9c3 /pkgs/development/python-modules/frozenlist | |
parent | 563c5037c94cfb5d6e89aff7221ddbffb069eac0 (diff) |
python3Packages.frozenlist: init at 1.1.1
Diffstat (limited to 'pkgs/development/python-modules/frozenlist')
-rw-r--r-- | pkgs/development/python-modules/frozenlist/default.nix | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/frozenlist/default.nix b/pkgs/development/python-modules/frozenlist/default.nix new file mode 100644 index 0000000000000..e3def747f03b1 --- /dev/null +++ b/pkgs/development/python-modules/frozenlist/default.nix @@ -0,0 +1,46 @@ +{ lib +, buildPythonPackage +, cython +, fetchFromGitHub +, pytestCheckHook +, pythonOlder +}: + +buildPythonPackage rec { + pname = "frozenlist"; + version = "1.1.1"; + disabled = pythonOlder "3.6"; + + src = fetchFromGitHub { + owner = "aio-libs"; + repo = pname; + rev = "v${version}"; + sha256 = "07z33vid7s8fjwvybyn8357yvs0f6nlhizv1l3qj1bczi3jbdkbh"; + }; + + nativeBuildInputs = [ + cython + ]; + + checkInputs = [ + pytestCheckHook + ]; + + postPatch = '' + substituteInPlace pytest.ini \ + --replace "--cov=frozenlist" "" + ''; + + preBuild = '' + cython frozenlist/_frozenlist.pyx + ''; + + pythonImportsCheck = [ "frozenlist" ]; + + 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 ]; + }; +} |