python311Packages.marshmallow-polyfield: refactor
This commit is contained in:
@@ -4,22 +4,32 @@
|
||||
, marshmallow
|
||||
, pythonOlder
|
||||
, pytestCheckHook
|
||||
, setuptools
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "marshmallow-polyfield";
|
||||
version = "5.10";
|
||||
format = "setuptools";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Bachmann1234";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
repo = "marshmallow-polyfield";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-oF5LBuDK4kqsAcKwidju+wFjigjy4CNbJ6bfWpGO1yQ=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.cfg \
|
||||
--replace "--cov=marshmallow_polyfield" ""
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
marshmallow
|
||||
];
|
||||
@@ -28,11 +38,6 @@ buildPythonPackage rec {
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.cfg \
|
||||
--replace "--cov=marshmallow_polyfield" ""
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [
|
||||
"marshmallow"
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user