46 lines
944 B
Nix
46 lines
944 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitLab,
|
|
hatchling,
|
|
pytestCheckHook,
|
|
requests,
|
|
urllib3,
|
|
waitress,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "requests-unixsocket2";
|
|
version = "1.0.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitLab {
|
|
owner = "thelabnyc";
|
|
repo = "requests-unixsocket2";
|
|
tag = "v${version}";
|
|
hash = "sha256-KgPIecKQibB5ZH+itw3OM9heSE3uDuodNS1R9dRkaHE=";
|
|
};
|
|
|
|
build-system = [ hatchling ];
|
|
|
|
dependencies = [
|
|
requests
|
|
urllib3
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
waitress
|
|
];
|
|
|
|
pythonImportsCheck = [ "requests_unixsocket" ];
|
|
|
|
meta = {
|
|
changelog = "https://gitlab.com/thelabnyc/requests-unixsocket2/-/blob/${src.tag}/CHANGELOG.md";
|
|
description = "Use requests to talk HTTP via a UNIX domain socket";
|
|
homepage = "https://gitlab.com/thelabnyc/requests-unixsocket2";
|
|
license = lib.licenses.bsd0;
|
|
maintainers = with lib.maintainers; [ mikut ];
|
|
};
|
|
}
|