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