1{ buildPythonPackage
2, fetchFromGitHub
3, lib
4, marshmallow
5 # Check Inputs
6, pytestCheckHook
7, pytestcov
8}:
9
10buildPythonPackage rec {
11 pname = "marshmallow-polyfield";
12 version = "5.9";
13
14 src = fetchFromGitHub {
15 owner = "Bachmann1234";
16 repo = pname;
17 rev = "v${version}";
18 sha256 = "15yx8ib5yx1xx6kq8wnfdmv9zm43k7y33c6zpq5rba6a30v4lcnd";
19 };
20
21 propagatedBuildInputs = [
22 marshmallow
23 ];
24
25 # setuptools check can run, but won't find tests
26 checkInputs = [ pytestCheckHook pytestcov ];
27
28 meta = with lib; {
29 description = "An unofficial extension to Marshmallow to allow for polymorphic fields";
30 homepage = "https://github.com/Bachmann1234/marshmallow-polyfield";
31 license = licenses.asl20;
32 maintainers = with maintainers; [ drewrisinger ];
33 };
34}