My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/marshmallow-polyfield/default.nix

45 lines
892 B

{ lib
, buildPythonPackage
, fetchFromGitHub
, marshmallow
, pythonOlder
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "marshmallow-polyfield";
version = "5.10";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "Bachmann1234";
repo = pname;
rev = "v${version}";
sha256 = "sha256-oF5LBuDK4kqsAcKwidju+wFjigjy4CNbJ6bfWpGO1yQ=";
};
propagatedBuildInputs = [
marshmallow
];
checkInputs = [
pytestCheckHook
];
postPatch = ''
substituteInPlace setup.cfg \
--replace "--cov=marshmallow_polyfield" ""
'';
pythonImportsCheck = [
"marshmallow"
];
meta = with lib; {
description = "Extension to Marshmallow to allow for polymorphic fields";
homepage = "https://github.com/Bachmann1234/marshmallow-polyfield";
license = licenses.asl20;
maintainers = with maintainers; [ drewrisinger ];
};
}