2025-04-25 02:29:01 -07:00

55 lines
955 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
hatchling,
dparse,
packaging,
pydantic,
ruamel-yaml,
typing-extensions,
}:
buildPythonPackage rec {
pname = "safety-schemas";
version = "0.0.14";
pyproject = true;
src = fetchPypi {
pname = "safety_schemas";
inherit version;
hash = "sha256-SZU/elnpGVcr4lWVqJRvnLvNIGb+PhYMlGfZ0dbXr2o=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace hatchling==1.26.3 hatchling
'';
build-system = [ hatchling ];
pythonRelaxDeps = [
"pydantic"
];
dependencies = [
dparse
packaging
pydantic
ruamel-yaml
typing-extensions
];
pythonImportsCheck = [ "safety_schemas" ];
# upstream has no tests
doCheck = false;
meta = {
description = "Schemas for Safety CLI";
homepage = "https://pypi.org/project/safety-schemas/";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ dotlambda ];
};
}