nixpkgs/pkgs/development/python-modules/unearth/default.nix
Guillaume Girol 33afbf39f6 treewide: switch to nativeCheckInputs
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
2023-01-21 12:00:00 +00:00

59 lines
1.1 KiB
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, cached-property
, packaging
, pdm-pep517
, requests
, flask
, pytest-httpserver
, pytestCheckHook
, requests-wsgi-adapter
, trustme
}:
buildPythonPackage rec {
pname = "unearth";
version = "0.7.0";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-z1RBGze3qUHzzf3ymu7ivxgWSor8o1xGe5f+q2JuZx4=";
};
nativeBuildInputs = [
pdm-pep517
];
propagatedBuildInputs = [
packaging
requests
] ++ lib.optionals (pythonOlder "3.8") [
cached-property
];
nativeCheckInputs = [
flask
pytest-httpserver
pytestCheckHook
requests-wsgi-adapter
trustme
];
pythonImportsCheck = [
"unearth"
];
meta = with lib; {
description = "A utility to fetch and download Python packages";
homepage = "https://github.com/frostming/unearth";
changelog = "https://github.com/frostming/unearth/releases/tag/${version}";
license = licenses.mit;
maintainers = with maintainers; [ betaboon ];
};
}