@@ -1,7 +1,12 @@
1−{ lib, buildPythonPackage, fetchFromGitHub, requests }:
1+{ lib
2+, buildPythonPackage
3+, fetchFromGitHub
4+, requests
5+, pytestCheckHook
6+}:
27
38buildPythonPackage rec {
4− pname = "httmock";
9+ pname = "httmock";
510 version = "1.4.0";
611
712 src = fetchFromGitHub {
@@ -11,12 +16,19 @@ buildPythonPackage rec {
1116 sha256 = "sha256-yid4vh1do0zqVzd1VV7gc+Du4VPrkeGFsDHqNbHL28I=";
1217 };
1318
14− checkInputs = [ requests ];
19+ checkInputs = [
20+ requests
21+ pytestCheckHook
22+ ];
23+
24+ pytestFlagsArray = [ "tests.py" ];
25+
26+ pythonImportsCheck = [ "httmock" ];
1527
1628 meta = with lib; {
1729 description = "A mocking library for requests";
18− homepage = "https://github.com/patrys/httmock";
19− license = licenses.asl20;
30+ homepage = "https://github.com/patrys/httmock";
31+ license = licenses.asl20;
2032 maintainers = with maintainers; [ nyanloutre ];
2133 };
2234}