Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / marshmallow-oneofschema / default.nix
blob933f5cc4c8b9184c603c0c8ef492975f9c2ca981
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , marshmallow
5 , pytestCheckHook
6 , pythonOlder
7 , flit-core
8 }:
10 buildPythonPackage rec {
11   pname = "marshmallow-oneofschema";
12   version = "3.1.1";
13   pyproject = true;
15   disabled = pythonOlder "3.8";
17   src = fetchFromGitHub {
18     owner = "marshmallow-code";
19     repo = "marshmallow-oneofschema";
20     rev = "refs/tags/${version}";
21     hash = "sha256-HXuyUxU8bT5arpUzmgv7m+X2fNT0qHY8S8Rz6klOGiA=";
22   };
24   nativeBuildInputs = [
25     flit-core
26   ];
28   propagatedBuildInputs = [
29     marshmallow
30   ];
32   nativeCheckInputs = [
33     pytestCheckHook
34   ];
36   pythonImportsCheck = [
37     "marshmallow_oneofschema"
38   ];
40   meta = with lib; {
41     description = "Marshmallow library extension that allows schema (de)multiplexing";
42     changelog = "https://github.com/marshmallow-code/marshmallow-oneofschema/blob/${version}/CHANGELOG.rst";
43     homepage = "https://github.com/marshmallow-code/marshmallow-oneofschema";
44     license = licenses.mit;
45     maintainers = with maintainers; [ ivan-tkatchev ];
46   };