From 835d63ad0768a07409a19814182cd6e56673e504 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 22 Sep 2021 15:54:46 +0200 Subject: [PATCH] python3Packages.faraday-agent-parameters-types: init at 1.0.1 --- .../default.nix | 39 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 41 insertions(+) create mode 100644 pkgs/development/python-modules/faraday-agent-parameters-types/default.nix diff --git a/pkgs/development/python-modules/faraday-agent-parameters-types/default.nix b/pkgs/development/python-modules/faraday-agent-parameters-types/default.nix new file mode 100644 index 000000000000..ba0e120442cc --- /dev/null +++ b/pkgs/development/python-modules/faraday-agent-parameters-types/default.nix @@ -0,0 +1,39 @@ +{ lib +, buildPythonPackage +, fetchPypi +, marshmallow +, pytestCheckHook +}: + +buildPythonPackage rec { + pname = "faraday-agent-parameters-types"; + version = "1.0.1"; + + src = fetchPypi { + pname = "faraday_agent_parameters_types"; + inherit version; + sha256 = "0q2cngxgkvl74mhkibvdsvjjrdfd7flxd6a4776wmxkkn0brzw66"; + }; + + propagatedBuildInputs = [ + marshmallow + ]; + + checkInputs = [ + pytestCheckHook + ]; + + postPatch = '' + substituteInPlace setup.py \ + --replace '"pytest-runner",' "" + ''; + + pythonImportsCheck = [ "faraday_agent_parameters_types" ]; + + meta = with lib; { + description = "Collection of Faraday agent parameters types"; + homepage = "https://github.com/infobyte/faraday_agent_parameters_types"; + license = with licenses; [ gpl3Plus ]; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index f138448c155f..6d2ed6084337 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2506,6 +2506,8 @@ in { falcon = callPackage ../development/python-modules/falcon { }; + faraday-agent-parameters-types = callPackage ../development/python-modules/faraday-agent-parameters-types { }; + faraday-plugins = callPackage ../development/python-modules/faraday-plugins { }; fastapi = callPackage ../development/python-modules/fastapi { };