2022-01-13 12:25:41 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, contextlib2
|
|
|
|
, fetchPypi
|
|
|
|
, mock
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
}:
|
2017-09-16 22:13:29 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "schema";
|
2021-12-06 07:40:25 +00:00
|
|
|
version = "0.7.5";
|
2022-01-13 12:25:41 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
2017-09-16 22:13:29 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-01-13 12:25:41 +00:00
|
|
|
hash = "sha256-8GcXESxhiVyrxHB3UriHFuhCCogZ1xQEUB4RT5EEMZc=";
|
2017-09-16 22:13:29 +01:00
|
|
|
};
|
|
|
|
|
2022-01-13 12:25:41 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
contextlib2
|
|
|
|
];
|
2019-11-03 09:51:58 +00:00
|
|
|
|
2022-01-13 12:25:41 +00:00
|
|
|
checkInputs = [
|
|
|
|
mock
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2019-11-03 09:51:58 +00:00
|
|
|
|
2022-01-13 12:25:41 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"schema"
|
|
|
|
];
|
2017-09-16 22:13:29 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-09-16 22:13:29 +01:00
|
|
|
description = "Library for validating Python data structures";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/keleshev/schema";
|
2017-09-16 22:13:29 +01:00
|
|
|
license = licenses.mit;
|
2022-01-13 12:25:41 +00:00
|
|
|
maintainers = with maintainers; [ tobim ];
|
2017-09-16 22:13:29 +01:00
|
|
|
};
|
|
|
|
}
|