2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
pythonOlder,
|
|
|
|
packaging,
|
|
|
|
pdm-backend,
|
|
|
|
httpx,
|
|
|
|
flask,
|
|
|
|
pytest-httpserver,
|
|
|
|
pytest-mock,
|
|
|
|
pytestCheckHook,
|
|
|
|
requests-wsgi-adapter,
|
|
|
|
trustme,
|
2022-09-30 11:47:45 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "unearth";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "0.17.2";
|
2024-04-21 15:54:59 +00:00
|
|
|
pyproject = true;
|
2023-01-11 07:51:40 +00:00
|
|
|
|
2024-02-07 01:22:34 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2022-09-30 11:47:45 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-C4oq/TR28athVfxXlQGsR//+Q1R9iKcOWlt2p/5sqiw=";
|
2022-09-30 11:47:45 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
build-system = [ pdm-backend ];
|
2022-09-30 11:47:45 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
dependencies = [
|
2022-09-30 11:47:45 +00:00
|
|
|
packaging
|
2024-04-21 15:54:59 +00:00
|
|
|
httpx
|
2022-09-30 11:47:45 +00:00
|
|
|
];
|
|
|
|
|
2023-08-22 20:05:09 +00:00
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-09-30 11:47:45 +00:00
|
|
|
flask
|
|
|
|
pytest-httpserver
|
2024-04-21 15:54:59 +00:00
|
|
|
pytest-mock
|
2022-09-30 11:47:45 +00:00
|
|
|
pytestCheckHook
|
|
|
|
requests-wsgi-adapter
|
|
|
|
trustme
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "unearth" ];
|
2023-01-11 07:51:40 +00:00
|
|
|
|
2022-09-30 11:47:45 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Utility to fetch and download Python packages";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "unearth";
|
2022-09-30 11:47:45 +00:00
|
|
|
homepage = "https://github.com/frostming/unearth";
|
2023-01-11 07:51:40 +00:00
|
|
|
changelog = "https://github.com/frostming/unearth/releases/tag/${version}";
|
2022-09-30 11:47:45 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ betaboon ];
|
|
|
|
};
|
|
|
|
}
|