python3Packages.unidiff: modernize and migrate to pyproject (#522858)
This commit is contained in:
@@ -3,18 +3,21 @@
|
||||
buildPythonPackage,
|
||||
fetchPypi,
|
||||
unittestCheckHook,
|
||||
setuptools,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "unidiff";
|
||||
version = "0.7.5";
|
||||
format = "setuptools";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
inherit (finalAttrs) pname version;
|
||||
sha256 = "2e5f0162052248946b9f0970a40e9e124236bf86c82b70821143a6fc1dea2574";
|
||||
};
|
||||
|
||||
build-system = [ setuptools ];
|
||||
|
||||
nativeCheckInputs = [ unittestCheckHook ];
|
||||
|
||||
unittestFlagsArray = [
|
||||
@@ -28,8 +31,8 @@ buildPythonPackage rec {
|
||||
description = "Unified diff python parsing/metadata extraction library";
|
||||
mainProgram = "unidiff";
|
||||
homepage = "https://github.com/matiasb/python-unidiff";
|
||||
changelog = "https://github.com/matiasb/python-unidiff/raw/v${version}/HISTORY";
|
||||
changelog = "https://github.com/matiasb/python-unidiff/raw/v${finalAttrs.version}/HISTORY";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = [ lib.maintainers.pbsds ];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user