2022-09-30 11:47:45 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pythonOlder
|
|
|
|
, cached-property
|
|
|
|
, packaging
|
|
|
|
, pdm-pep517
|
|
|
|
, requests
|
|
|
|
, flask
|
|
|
|
, pytest-httpserver
|
|
|
|
, pytestCheckHook
|
|
|
|
, requests-wsgi-adapter
|
|
|
|
, trustme
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "unearth";
|
2023-04-29 16:46:19 +00:00
|
|
|
version = "0.9.0";
|
2022-09-30 11:47:45 +00:00
|
|
|
format = "pyproject";
|
2023-01-11 07:51:40 +00:00
|
|
|
|
2022-09-30 11:47:45 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-04-29 16:46:19 +00:00
|
|
|
hash = "sha256-TOdHdw9sVxaYx2VCdt3QIEyBx9mkcPAKjEAdh7umdSQ=";
|
2022-09-30 11:47:45 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pdm-pep517
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
packaging
|
|
|
|
requests
|
|
|
|
] ++ lib.optionals (pythonOlder "3.8") [
|
|
|
|
cached-property
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-09-30 11:47:45 +00:00
|
|
|
flask
|
|
|
|
pytest-httpserver
|
|
|
|
pytestCheckHook
|
|
|
|
requests-wsgi-adapter
|
|
|
|
trustme
|
|
|
|
];
|
|
|
|
|
2023-01-11 07:51:40 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"unearth"
|
|
|
|
];
|
|
|
|
|
2022-09-30 11:47:45 +00:00
|
|
|
meta = with lib; {
|
2023-01-11 07:51:40 +00:00
|
|
|
description = "A utility to fetch and download Python packages";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|