From 4fb1130b71f8e728ea15a0cc55613d36c14a9d31 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Fri, 16 Sep 2022 01:46:12 +0200 Subject: [PATCH] python3Packages.http-parser: add setuptools to nativeBuildInputs --- .../python-modules/http-parser/default.nix | 21 +++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/http-parser/default.nix b/pkgs/development/python-modules/http-parser/default.nix index d98785576f48..d0fc242c9896 100644 --- a/pkgs/development/python-modules/http-parser/default.nix +++ b/pkgs/development/python-modules/http-parser/default.nix @@ -1,7 +1,9 @@ { lib , buildPythonPackage , fetchFromGitHub -, pytest +, cython +, setuptools +, pytestCheckHook }: buildPythonPackage rec { @@ -12,15 +14,22 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "benoitc"; repo = pname; - rev = version; - sha256 = "05byv1079qi7ypvzm13yf5nc23ink6gr6c5wrhq7fwld4syscy2q"; + rev = "refs/tags/${version}"; + hash = "sha256-WHimvSaNcncwzLwwk5+ZNg7BbHF+hPr39SfidEDYfhU="; }; - checkInputs = [ pytest ]; + nativeBuildInputs = [ + setuptools + ]; - checkPhase = "pytest testing/"; - pythonImportsCheck = [ "http_parser" ]; + pythonImportsCheck = [ + "http_parser" + ]; + + checkInputs = [ + pytestCheckHook + ]; meta = with lib; { description = "HTTP request/response parser for python in C";