nixpkgs/pkgs/development/python-modules/requests-unixsocket/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

44 lines
762 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pbr
, requests
, pytestCheckHook
, waitress
}:
buildPythonPackage rec {
pname = "requests-unixsocket";
version = "0.3.0";
format = "setuptools";
src = fetchPypi {
inherit pname version;
hash = "sha256-KDBCg+qTV9Rf/1itWxHkdwjPv1gGgXqlmyo2Mijulx4=";
};
nativeBuildInputs = [
pbr
];
propagatedBuildInputs = [
requests
];
nativeCheckInputs = [
pytestCheckHook
waitress
];
pythonImportsCheck = [
"requests_unixsocket"
];
meta = with lib; {
description = "Use requests to talk HTTP via a UNIX domain socket";
homepage = "https://github.com/msabramo/requests-unixsocket";
license = licenses.asl20;
maintainers = with maintainers; [ catern ];
};
}