udduup: migrate to new Python app style

This commit is contained in:
Fabian Affolter 2021-12-12 22:11:49 +01:00
parent 5e4feb3c2d
commit 3abb28c6cb
2 changed files with 9 additions and 8 deletions

View file

@ -1,13 +1,12 @@
{ lib
, buildPythonApplication
, colorama
, fetchFromGitHub
, pytestCheckHook
, python3
}:
buildPythonApplication rec {
python3.pkgs.buildPythonApplication rec {
pname = "uddup";
version = "0.9.3";
format = "setuptools";
src = fetchFromGitHub {
owner = "rotemreiss";
@ -16,15 +15,17 @@ buildPythonApplication rec {
sha256 = "1f5dm3772hiik9irnyvbs7wygcafbwi7czw3b47cwhb90b8fi5hg";
};
propagatedBuildInputs = [
propagatedBuildInputs = with python3.pkgs; [
colorama
];
checkInputs = [
checkInputs = with python3.pkgs; [
pytestCheckHook
];
pythonImportsCheck = [ "uddup" ];
pythonImportsCheck = [
"uddup"
];
meta = with lib; {
description = "Tool for de-duplication URLs";

View file

@ -15479,7 +15479,7 @@ with pkgs;
inherit (darwin.apple_sdk.frameworks) CoreFoundation;
};
uddup = python3Packages.callPackage ../tools/security/uddup { };
uddup = callPackage ../tools/security/uddup { };
udis86 = callPackage ../development/tools/udis86 { };