e7ec2969af
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
61 lines
926 B
Nix
61 lines
926 B
Nix
{ lib
|
|
, fetchPypi
|
|
, buildPythonPackage
|
|
|
|
# build-system
|
|
, incremental
|
|
, setuptools
|
|
|
|
# dependenices
|
|
, attrs
|
|
, hyperlink
|
|
, requests
|
|
, twisted
|
|
|
|
# tests
|
|
, httpbin
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "treq";
|
|
version = "23.11.0";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-CRT/kp/RYyzhZ5cjUmD4vBnSD/fEWcHeq9ZbjGjL6sU=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
incremental
|
|
setuptools
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
attrs
|
|
hyperlink
|
|
incremental
|
|
requests
|
|
twisted
|
|
] ++ twisted.optional-dependencies.tls;
|
|
|
|
nativeCheckInputs = [
|
|
httpbin
|
|
twisted
|
|
];
|
|
|
|
checkPhase = ''
|
|
runHook preCheck
|
|
|
|
trial treq
|
|
|
|
runHook postCheck
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/twisted/treq";
|
|
description = "Requests-like API built on top of twisted.web's Agent";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ ];
|
|
};
|
|
}
|