0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-13 21:50:33 +03:00

Merge pull request #128287 from dotlambda/aiomodernforms-init

python3Packages.aiomodernforms: init at 0.1.7
This commit is contained in:
Martin Weinelt 2021-06-27 16:13:03 +02:00 committed by GitHub
commit e34f40b92b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 50 additions and 0 deletions

View file

@ -0,0 +1,48 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, aiohttp
, backoff
, yarl
, aresponses
, pytest-asyncio
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "aiomodernforms";
version = "0.1.7";
src = fetchFromGitHub {
owner = "wonderslug";
repo = "aiomodernforms";
rev = "v${version}";
sha256 = "1yrs5q4ggasbjn6z8x04yamn2wra702i09iqyzj9aqq31bc9jnd1";
};
postPatch = ''
substituteInPlace setup.py \
--replace "packaging" ""
'';
propagatedBuildInputs = [
aiohttp
backoff
yarl
];
checkInputs = [
aresponses
pytest-asyncio
pytestCheckHook
];
pythonImportsCheck = [ "aiomodernforms" ];
meta = with lib; {
description = "Asynchronous Python client for Modern Forms fans";
homepage = "https://github.com/wonderslug/aiomodernforms";
license = licenses.mit;
maintainers = with maintainers; [ dotlambda ];
};
}

View file

@ -321,6 +321,8 @@ in {
aiolyric = callPackage ../development/python-modules/aiolyric { };
aiomodernforms = callPackage ../development/python-modules/aiomodernforms { };
aiomultiprocess = callPackage ../development/python-modules/aiomultiprocess { };
aiomysql = callPackage ../development/python-modules/aiomysql { };