python3Packages: Use buildPythonPackage

Also enables tests and fixes import check module name.
This commit is contained in:
Martin Weinelt 2022-10-02 14:50:33 +02:00
parent 974f1ece20
commit 17b976e99f

View File

@ -1,11 +1,12 @@
{ lib
, callPackage
, buildPythonApplication
, buildPythonPackage
, fetchFromGitHub
, mkdocs
, pytestCheckHook
}:
buildPythonApplication rec {
buildPythonPackage rec {
pname = "mkdocs-redirects";
version = "1.2.0";
@ -20,7 +21,13 @@ buildPythonApplication rec {
mkdocs
];
pythonImportsCheck = [ "mkdocs" ];
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"mkdocs_redirects"
];
meta = with lib; {
description = "Open source plugin for Mkdocs page redirects";