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
23 pythonRemoveDeps = [ "contextlib2" ];
24
25 nativeCheckInputs = [
26 mock
27 pytestCheckHook
28 ];
29
30 pythonImportsCheck = [ "schema" ];
31
32 meta = with lib; {
33 description = "Library for validating Python data structures";
34 homepage = "https://github.com/keleshev/schema";
35 license = licenses.mit;
36 maintainers = with maintainers; [ tobim ];
37 };
38}