1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 hatchling,
6 pythonRelaxDepsHook,
7 dparse,
8 packaging,
9 pydantic,
10 ruamel-yaml,
11 typing-extensions,
12}:
13
14buildPythonPackage rec {
15 pname = "safety-schemas";
16 version = "0.0.2";
17 pyproject = true;
18
19 src = fetchPypi {
20 pname = "safety_schemas";
21 inherit version;
22 hash = "sha256-fRsEDsBkgPBc/2tF6nqT4JyJQt+GT7DQHd62fDI8+ow=";
23 };
24
25 nativeBuildInputs = [
26 hatchling
27 pythonRelaxDepsHook
28 ];
29
30 pythonRelaxDeps = [ "dparse" ];
31
32 propagatedBuildInputs = [
33 dparse
34 packaging
35 pydantic
36 ruamel-yaml
37 typing-extensions
38 ];
39
40 pythonImportsCheck = [ "safety_schemas" ];
41
42 # upstream has no tests
43 doCheck = false;
44
45 meta = {
46 description = "Schemas for Safety CLI";
47 homepage = "https://pypi.org/project/safety-schemas/";
48 license = lib.licenses.mit;
49 maintainers = with lib.maintainers; [ dotlambda ];
50 };
51}