From 046d0253aa88e47e4d424e02bc548897d5eeacfe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sun, 5 Jun 2022 17:04:30 +0000 Subject: [PATCH] python310Packages.safety: improve expression --- .../python-modules/safety/default.nix | 35 +++++++++++++++---- 1 file changed, 28 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/safety/default.nix b/pkgs/development/python-modules/safety/default.nix index dd840c3389ca..49603322a8fc 100644 --- a/pkgs/development/python-modules/safety/default.nix +++ b/pkgs/development/python-modules/safety/default.nix @@ -1,19 +1,41 @@ -{ lib, buildPythonPackage, fetchPypi, requests, dparse, click, setuptools, pytestCheckHook }: +{ lib +, buildPythonPackage +, pythonOlder +, fetchPypi +, setuptools +, click +, requests +, packaging +, dparse +, pytestCheckHook +}: buildPythonPackage rec { pname = "safety"; version = "1.10.3"; + diabled = pythonOlder "3.5"; + + format = "setuptools"; + src = fetchPypi { inherit pname version; sha256 = "sha256-MOOU0CogrEm39lKS0Z04+pJ6j5WCzf060a27xmxkGtU="; }; - propagatedBuildInputs = [ requests dparse click setuptools ]; + propagatedBuildInputs = [ + setuptools + click + requests + packaging + dparse + ]; + + checkInputs = [ + pytestCheckHook + ]; # Disable tests depending on online services - checkInputs = [ pytestCheckHook ]; - dontUseSetuptoolsCheck = true; disabledTests = [ "test_check_live" "test_check_live_cached" @@ -24,10 +46,9 @@ buildPythonPackage rec { ''; meta = with lib; { - description = - "Safety checks your installed dependencies for known security vulnerabilities"; + description = "Checks installed dependencies for known vulnerabilities"; homepage = "https://github.com/pyupio/safety"; license = licenses.mit; - maintainers = with maintainers; [ thomasdesr ]; + maintainers = with maintainers; [ thomasdesr dotlambda ]; }; }