Merge pull request #124397 from fabaff/frozenlist
python3Packages.frozenlist: init at 1.1.1, python3Packages.aiosignal: init at 1.1.1
This commit is contained in:
commit
ffd68b1033
3 changed files with 94 additions and 0 deletions
44
pkgs/development/python-modules/aiosignal/default.nix
Normal file
44
pkgs/development/python-modules/aiosignal/default.nix
Normal file
|
@ -0,0 +1,44 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, frozenlist
|
||||
, pytest-asyncio
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "aiosignal";
|
||||
version = "1.1.1";
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "aio-libs";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "0a9md2dy83qwg2an57nqrzp9nb7krq27y9zz0f7qxcrv0xd42djy";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
frozenlist
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytest-asyncio
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace pytest.ini \
|
||||
--replace "--cov=aiosignal" ""
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [ "aiosignal" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python list of registered asynchronous callbacks";
|
||||
homepage = "https://github.com/aio-libs/aiosignal";
|
||||
license = with licenses; [ asl20 ];
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
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 ];
|
||||
};
|
||||
}
|
|
@ -333,6 +333,8 @@ in {
|
|||
|
||||
aioshelly = callPackage ../development/python-modules/aioshelly { };
|
||||
|
||||
aiosignal = callPackage ../development/python-modules/aiosignal { };
|
||||
|
||||
aiosmb = callPackage ../development/python-modules/aiosmb { };
|
||||
|
||||
aiosmtpd = callPackage ../development/python-modules/aiosmtpd { };
|
||||
|
@ -2619,6 +2621,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 a new issue