fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
58 lines
1 KiB
Nix
58 lines
1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
pythonAtLeast,
|
|
pythonOlder,
|
|
fetchFromGitHub,
|
|
anyio,
|
|
async-generator,
|
|
h11,
|
|
curio,
|
|
overly,
|
|
pytestCheckHook,
|
|
trio,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "asks";
|
|
version = "3.0.0";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "theelous3";
|
|
repo = "asks";
|
|
rev = "v${version}";
|
|
hash = "sha256-ipQ5n2386DqR3kNpmTVhNPG+LC7gfCbvrlZ97+UP55g=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
anyio
|
|
async-generator
|
|
h11
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
curio
|
|
overly
|
|
pytestCheckHook
|
|
trio
|
|
];
|
|
|
|
disabledTests = lib.optionals (pythonAtLeast "3.12") [
|
|
# stuck in threading waiter.acquire()
|
|
"test_https_get"
|
|
"test_https_get_checks_cert"
|
|
];
|
|
|
|
pythonImportsCheck = [ "asks" ];
|
|
|
|
meta = {
|
|
description = "Async requests-like HTTP library for Python";
|
|
homepage = "https://github.com/theelous3/asks";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ dotlambda ];
|
|
};
|
|
}
|