2020-01-20 23:55:16 +00:00
|
|
|
{ buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, lib
|
|
|
|
, marshmallow
|
|
|
|
# Check Inputs
|
|
|
|
, pytestCheckHook
|
|
|
|
, pytestcov
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "marshmallow-polyfield";
|
2020-03-26 20:57:31 +00:00
|
|
|
version = "5.9";
|
2020-01-20 23:55:16 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Bachmann1234";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "15yx8ib5yx1xx6kq8wnfdmv9zm43k7y33c6zpq5rba6a30v4lcnd";
|
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
marshmallow
|
|
|
|
];
|
2020-03-26 20:57:31 +00:00
|
|
|
|
2020-01-20 23:55:16 +00:00
|
|
|
# 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 ];
|
|
|
|
};
|
2020-08-25 03:07:09 +01:00
|
|
|
}
|