python310Packages.marshmallow-oneofschema: enable tests

This commit is contained in:
Fabian Affolter 2022-05-18 08:34:55 +02:00
parent 6a6cfdc9f8
commit 1bd9ff368f

View File

@ -1,22 +1,43 @@
{ lib, buildPythonPackage, fetchPypi, marshmallow, setuptools }: { lib
, buildPythonPackage
, fetchFromGitHub
, marshmallow
, pytestCheckHook
, pythonOlder
, setuptools
}:
buildPythonPackage rec { buildPythonPackage rec {
pname = "marshmallow-oneofschema"; pname = "marshmallow-oneofschema";
version = "3.0.1"; version = "3.0.1";
format = "setuptools";
src = fetchPypi { disabled = pythonOlder "3.6";
inherit pname version;
sha256 = "62cd2099b29188c92493c2940ee79d1bf2f2619a71721664e5a98ec2faa58237"; src = fetchFromGitHub {
owner = "marshmallow-code";
repo = pname;
rev = version;
hash = "sha256-x0v8WkfjGkP2668QIQiewQViYFDIS2zBWMULcDThWas=";
}; };
propagatedBuildInputs = [ marshmallow setuptools ]; propagatedBuildInputs = [
marshmallow
setuptools
];
pythonImportsCheck = [ "marshmallow_oneofschema" ]; checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"marshmallow_oneofschema"
];
meta = with lib; { meta = with lib; {
homepage = "https://github.com/marshmallow-code/marshmallow-oneofschema";
description = "Marshmallow library extension that allows schema (de)multiplexing"; description = "Marshmallow library extension that allows schema (de)multiplexing";
homepage = "https://github.com/marshmallow-code/marshmallow-oneofschema";
license = licenses.mit; license = licenses.mit;
maintainers = [ maintainers.ivan-tkatchev ]; maintainers = with maintainers; [ ivan-tkatchev ];
}; };
} }