depot/third_party/nixpkgs/pkgs/development/python-modules/schema/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

40 lines
766 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
mock,
pytestCheckHook,
pythonOlder,
pythonRelaxDepsHook,
}:
buildPythonPackage rec {
pname = "schema";
version = "0.7.5";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
hash = "sha256-8GcXESxhiVyrxHB3UriHFuhCCogZ1xQEUB4RT5EEMZc=";
};
nativeBuildInputs = [ pythonRelaxDepsHook ];
pythonRemoveDeps = [ "contextlib2" ];
nativeCheckInputs = [
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 ];
};
}