summary refs log tree commit diff
path: root/pkgs/development/python-modules/marshmallow-polyfield/default.nix
blob: cb0b9e9e60d242b379225e0ab3e8d42150c1f6a4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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 ];
  };
}