Merge pull request #124397 from fabaff/frozenlist
python3Packages.frozenlist: init at 1.1.1, python3Packages.aiosignal: init at 1.1.1launchpad/nixpkgs/master
commit
ffd68b1033
@ -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 ]; |
||||
}; |
||||
} |
@ -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 ]; |
||||
}; |
||||
} |
Loading…
Reference in new issue