diff --git a/pkgs/development/python-modules/aiomodernforms/default.nix b/pkgs/development/python-modules/aiomodernforms/default.nix new file mode 100644 index 000000000000..0f7c954eafa1 --- /dev/null +++ b/pkgs/development/python-modules/aiomodernforms/default.nix @@ -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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 8266683e2e9f..637057b5e8b4 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -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 { };