1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 mock,
6 pytestCheckHook,
7 pythonOlder,
8}:
9
10buildPythonPackage rec {
11 pname = "schema";
12 version = "0.7.7";
13 format = "setuptools";
14
15 disabled = pythonOlder "3.6";
16
17 src = fetchPypi {
18 inherit pname version;
19 hash = "sha256-faVTq9KVihncJUfDiM3lM5izkZYXWpvlnqHK9asKGAc=";
20 };
21
22 pythonRemoveDeps = [ "contextlib2" ];
23
24 nativeCheckInputs = [
25 mock
26 pytestCheckHook
27 ];
28
29 pythonImportsCheck = [ "schema" ];
30
31 meta = with lib; {
32 description = "Library for validating Python data structures";
33 homepage = "https://github.com/keleshev/schema";
34 license = licenses.mit;
35 maintainers = with maintainers; [ tobim ];
36 };
37}