14910f5943
GitOrigin-RevId: 5aaed40d22f0d9376330b6fa413223435ad6fee5
41 lines
710 B
Nix
41 lines
710 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, contextlib2
|
|
, fetchPypi
|
|
, mock
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "schema";
|
|
version = "0.7.5";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-8GcXESxhiVyrxHB3UriHFuhCCogZ1xQEUB4RT5EEMZc=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
contextlib2
|
|
];
|
|
|
|
checkInputs = [
|
|
mock
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"schema"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Library for validating Python data structures";
|
|
homepage = "https://github.com/keleshev/schema";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ tobim ];
|
|
};
|
|
}
|