python3Packages.dtfabric: modernize
- migrate to finalAttrs - add pythonImportsCheck - update ordering
This commit is contained in:
@@ -6,38 +6,39 @@
|
||||
pyyaml,
|
||||
setuptools,
|
||||
}:
|
||||
buildPythonPackage rec {
|
||||
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "dtfabric";
|
||||
version = "20260411";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
inherit (finalAttrs) pname version;
|
||||
hash = "sha256-0hnJJ76wpINsNXecrGCQILqixo4xUhH8dW6djq9/vH4=";
|
||||
};
|
||||
|
||||
pythonRemoveDeps = [ "pip" ];
|
||||
|
||||
build-system = [ setuptools ];
|
||||
|
||||
dependencies = [
|
||||
pyyaml
|
||||
];
|
||||
|
||||
pythonRemoveDeps = [
|
||||
"pip"
|
||||
];
|
||||
dependencies = [ pyyaml ];
|
||||
|
||||
checkPhase = ''
|
||||
runHook preCheck
|
||||
|
||||
${python.interpreter} run_tests.py
|
||||
|
||||
runHook postCheck
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [ "dtfabric" ];
|
||||
|
||||
meta = {
|
||||
changelog = "https://github.com/libyal/dtfabric/releases/tag/${version}";
|
||||
description = "Project to manage data types and structures, as used in the libyal projects";
|
||||
changelog = "https://github.com/libyal/dtfabric/releases/tag/${finalAttrs.version}";
|
||||
downloadPage = "https://github.com/libyal/dtfabric/releases";
|
||||
homepage = "https://github.com/libyal/dtfabric";
|
||||
license = lib.licenses.asl20;
|
||||
maintainers = [ lib.maintainers.jayrovacsek ];
|
||||
maintainers = with lib.maintainers; [ jayrovacsek ];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user