diff options
author | Robert Schütz <dev@schuetz-co.de> | 2021-06-27 11:29:18 +0200 |
---|---|---|
committer | Robert Schütz <dev@schuetz-co.de> | 2021-06-27 14:04:42 +0200 |
commit | a4459504c81d5ed2f889be8c74f92404a9927548 (patch) | |
tree | 8ff9f771341f87e28f6ab69ff21769ef866da28a /pkgs/development/python-modules/aiomodernforms | |
parent | b385d52786f4b6ffab85c6044ac7ba45068d0e58 (diff) |
python3Packages.aiomodernforms: init at 0.1.7
Diffstat (limited to 'pkgs/development/python-modules/aiomodernforms')
-rw-r--r-- | pkgs/development/python-modules/aiomodernforms/default.nix | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/aiomodernforms/default.nix b/pkgs/development/python-modules/aiomodernforms/default.nix new file mode 100644 index 0000000000000..0f7c954eafa11 --- /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 ]; + }; +} |