diff options
Diffstat (limited to 'pkgs/development/python-modules/asciitree/default.nix')
-rw-r--r-- | pkgs/development/python-modules/asciitree/default.nix | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/pkgs/development/python-modules/asciitree/default.nix b/pkgs/development/python-modules/asciitree/default.nix index 323e1fbf87394..ab8ec69bef49d 100644 --- a/pkgs/development/python-modules/asciitree/default.nix +++ b/pkgs/development/python-modules/asciitree/default.nix @@ -1,28 +1,26 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytest +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + pytestCheckHook, }: buildPythonPackage rec { pname = "asciitree"; version = "0.3.3"; - format = "setuptools"; + pyproject = true; src = fetchFromGitHub { owner = "mbr"; - repo = pname; + repo = "asciitree"; rev = version; - sha256 = "071wlpyi8pa262sj9xdy0zbj163z84dasxad363z3sfndqxw78h1"; + hash = "sha256-AaLDO27W6fGHGU11rRpBf5gg1we+9SS1MEJdFP2lPBw="; }; - nativeCheckInputs = [ - pytest - ]; + build-system = [ setuptools ]; - checkPhase = '' - pytest - ''; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { description = "Draws ASCII trees"; |