fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
51 lines
906 B
Nix
51 lines
906 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
hatchling,
|
|
pythonRelaxDepsHook,
|
|
dparse,
|
|
packaging,
|
|
pydantic,
|
|
ruamel-yaml,
|
|
typing-extensions,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "safety-schemas";
|
|
version = "0.0.2";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
pname = "safety_schemas";
|
|
inherit version;
|
|
hash = "sha256-fRsEDsBkgPBc/2tF6nqT4JyJQt+GT7DQHd62fDI8+ow=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
hatchling
|
|
pythonRelaxDepsHook
|
|
];
|
|
|
|
pythonRelaxDeps = [ "dparse" ];
|
|
|
|
propagatedBuildInputs = [
|
|
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 ];
|
|
};
|
|
}
|