nixpkgs/pkgs/tools/security/uddup/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

37 lines
709 B
Nix

{ lib
, fetchFromGitHub
, python3
}:
python3.pkgs.buildPythonApplication rec {
pname = "uddup";
version = "0.9.3";
format = "setuptools";
src = fetchFromGitHub {
owner = "rotemreiss";
repo = pname;
rev = "v${version}";
sha256 = "1f5dm3772hiik9irnyvbs7wygcafbwi7czw3b47cwhb90b8fi5hg";
};
propagatedBuildInputs = with python3.pkgs; [
colorama
];
nativeCheckInputs = with python3.pkgs; [
pytestCheckHook
];
pythonImportsCheck = [
"uddup"
];
meta = with lib; {
description = "Tool for de-duplication URLs";
homepage = "https://github.com/rotemreiss/uddup";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}