depot/third_party/nixpkgs/pkgs/development/python-modules/marshmallow-polyfield/default.nix
Default email 21cecf6002 Project import generated by Copybara.
GitOrigin-RevId: dd14e5d78e90a2ccd6007e569820de9b4861a6c2
2021-07-24 08:14:16 -04:00

34 lines
789 B
Nix

{ buildPythonPackage
, fetchFromGitHub
, lib
, marshmallow
# Check Inputs
, pytestCheckHook
, pytest-cov
}:
buildPythonPackage rec {
pname = "marshmallow-polyfield";
version = "5.9";
src = fetchFromGitHub {
owner = "Bachmann1234";
repo = pname;
rev = "v${version}";
sha256 = "15yx8ib5yx1xx6kq8wnfdmv9zm43k7y33c6zpq5rba6a30v4lcnd";
};
propagatedBuildInputs = [
marshmallow
];
# setuptools check can run, but won't find tests
checkInputs = [ pytestCheckHook pytest-cov ];
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 ];
};
}