@@ -1,32 +1,43 @@
1−{ buildPythonPackage
1+{ lib
2+, buildPythonPackage
23, fetchFromGitHub
3−, lib
44, marshmallow
5− # Check Inputs
5+, pythonOlder
66, pytestCheckHook
7−, pytest-cov
87}:
98
109buildPythonPackage rec {
1110 pname = "marshmallow-polyfield";
12− version = "5.9";
11+ version = "5.10";
12+
13+ disabled = pythonOlder "3.6";
1314
1415 src = fetchFromGitHub {
1516 owner = "Bachmann1234";
1617 repo = pname;
1718 rev = "v${version}";
18− sha256 = "15yx8ib5yx1xx6kq8wnfdmv9zm43k7y33c6zpq5rba6a30v4lcnd";
19+ sha256 = "sha256-oF5LBuDK4kqsAcKwidju+wFjigjy4CNbJ6bfWpGO1yQ=";
1920 };
2021
2122 propagatedBuildInputs = [
2223 marshmallow
2324 ];
2425
25− # setuptools check can run, but won't find tests
26− checkInputs = [ pytestCheckHook pytest-cov ];
26+ checkInputs = [
27+ pytestCheckHook
28+ ];
29+
30+ postPatch = ''
31+ substituteInPlace setup.cfg \
32+ --replace "--cov=marshmallow_polyfield" ""
33+ '';
34+
35+ pythonImportsCheck = [
36+ "marshmallow"
37+ ];
2738
2839 meta = with lib; {
29− description = "An unofficial extension to Marshmallow to allow for polymorphic fields";
40+ description = "Extension to Marshmallow to allow for polymorphic fields";
3041 homepage = "https://github.com/Bachmann1234/marshmallow-polyfield";
3142 license = licenses.asl20;
3243 maintainers = with maintainers; [ drewrisinger ];