nixpkgs/pkgs/development/python-modules/txrequests/default.nix
Guillaume Girol 33afbf39f6 treewide: switch to nativeCheckInputs
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
2023-01-21 12:00:00 +00:00

34 lines
679 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, twisted
, requests
, cryptography
, unittestCheckHook
}:
buildPythonPackage rec {
pname = "txrequests";
version = "0.9.6";
src = fetchPypi {
inherit pname version;
sha256 = "b452a1cafa4d005678f6fa47922a330feb4907d5b4732d1841ca98e89f1362e1";
};
propagatedBuildInputs = [ twisted requests cryptography ];
# Require network access
doCheck = false;
nativeCheckInputs = [ unittestCheckHook ];
meta = with lib; {
description = "Asynchronous Python HTTP for Humans.";
homepage = "https://github.com/tardyp/txrequests";
license = licenses.asl20;
maintainers = with maintainers; [ ];
};
}