python3Packages.frozenlist: init at 1.1.1
This commit is contained in:
parent
563c5037c9
commit
4a1c0cdba8
46
pkgs/development/python-modules/frozenlist/default.nix
Normal file
46
pkgs/development/python-modules/frozenlist/default.nix
Normal file
@ -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 ];
|
||||
};
|
||||
}
|
@ -2619,6 +2619,8 @@ in {
|
||||
|
||||
frozendict = callPackage ../development/python-modules/frozendict { };
|
||||
|
||||
frozenlist = callPackage ../development/python-modules/frozenlist { };
|
||||
|
||||
fs = callPackage ../development/python-modules/fs { };
|
||||
|
||||
fs-s3fs = callPackage ../development/python-modules/fs-s3fs { };
|
||||
|
Loading…
Reference in New Issue
Block a user