Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
52 lines
928 B
Nix
52 lines
928 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
hatchling,
|
|
httpx,
|
|
tqdm,
|
|
urllib3,
|
|
vcrpy,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "habanero";
|
|
version = "2.3.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "sckott";
|
|
repo = "habanero";
|
|
tag = "v${version}";
|
|
hash = "sha256-XI+UOm3xONBNVSlywfBhnsCA9RdpEwDQ4oQixn4UBKk=";
|
|
};
|
|
|
|
build-system = [ hatchling ];
|
|
|
|
pythonRelaxDeps = [ "urllib3" ];
|
|
|
|
dependencies = [
|
|
httpx
|
|
tqdm
|
|
urllib3
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
vcrpy
|
|
];
|
|
|
|
pythonImportsCheck = [ "habanero" ];
|
|
|
|
# almost the entirety of the test suite makes network calls
|
|
enabledTestPaths = [ "test/test-filters.py" ];
|
|
|
|
meta = {
|
|
description = "Python interface to Library Genesis";
|
|
homepage = "https://habanero.readthedocs.io/";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ nico202 ];
|
|
};
|
|
}
|