nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 marshmallow,
6 pytestCheckHook,
7 pytest-cov-stub,
8 setuptools,
9}:
10
11buildPythonPackage rec {
12 pname = "marshmallow-polyfield";
13 version = "5.11";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "Bachmann1234";
18 repo = "marshmallow-polyfield";
19 tag = "v${version}";
20 hash = "sha256-jbpeyih2Ccw1Rk+QcXRO9AfN5B/DhZmxa/M6FzXHqqs=";
21 };
22
23 build-system = [ setuptools ];
24
25 dependencies = [ marshmallow ];
26
27 nativeCheckInputs = [
28 pytestCheckHook
29 pytest-cov-stub
30 ];
31
32 pythonImportsCheck = [ "marshmallow" ];
33
34 meta = {
35 # https://github.com/Bachmann1234/marshmallow-polyfield/issues/45
36 broken = true;
37 description = "Extension to Marshmallow to allow for polymorphic fields";
38 homepage = "https://github.com/Bachmann1234/marshmallow-polyfield";
39 license = lib.licenses.asl20;
40 maintainers = [ ];
41 };
42}