diff --git a/pkgs/development/python-modules/marshmallow-polyfield/default.nix b/pkgs/development/python-modules/marshmallow-polyfield/default.nix new file mode 100644 index 000000000000..cb0b9e9e60d2 --- /dev/null +++ b/pkgs/development/python-modules/marshmallow-polyfield/default.nix @@ -0,0 +1,34 @@ +{ buildPythonPackage +, fetchFromGitHub +, lib +, marshmallow + # Check Inputs +, pytestCheckHook +, pytestcov +}: + +buildPythonPackage rec { + pname = "marshmallow-polyfield"; + version = "5.7"; + + src = fetchFromGitHub { + owner = "Bachmann1234"; + repo = pname; + rev = "v${version}"; + sha256 = "15yx8ib5yx1xx6kq8wnfdmv9zm43k7y33c6zpq5rba6a30v4lcnd"; + }; + + propagatedBuildInputs = [ + marshmallow + ]; + + # setuptools check can run, but won't find tests + checkInputs = [ pytestCheckHook pytestcov ]; + + meta = with lib; { + description = "An unofficial extension to Marshmallow to allow for polymorphic fields"; + homepage = "https://github.com/Bachmann1234/marshmallow-polyfield"; + license = licenses.asl20; + maintainers = with maintainers; [ drewrisinger ]; + }; +} \ No newline at end of file diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 27fb41d2c4bf..02c6ef3cd265 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4158,6 +4158,8 @@ in { marshmallow-enum = callPackage ../development/python-modules/marshmallow-enum { }; + marshmallow-polyfield = callPackage ../development/python-modules/marshmallow-polyfield { }; + marshmallow-sqlalchemy = callPackage ../development/python-modules/marshmallow-sqlalchemy { }; manuel = callPackage ../development/python-modules/manuel { };