python3Packages.cart: migrate to pyproject (#528847)
This commit is contained in:
@@ -4,21 +4,26 @@
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
pytestCheckHook,
|
||||
setuptools,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "cart";
|
||||
version = "1.2.3";
|
||||
format = "setuptools";
|
||||
pyproject = true;
|
||||
|
||||
__structuredAttrs = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "CybercentreCanada";
|
||||
repo = "cart";
|
||||
tag = "v${version}";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-oeWeay1Pr9T4oR3XSrwv9hRr/sLTel1Bt6BG6jHXxIA=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ pycryptodome ];
|
||||
build-system = [ setuptools ];
|
||||
|
||||
dependencies = [ pycryptodome ];
|
||||
|
||||
nativeCheckInputs = [ pytestCheckHook ];
|
||||
|
||||
@@ -30,8 +35,8 @@ buildPythonPackage rec {
|
||||
description = "Python module for the CaRT Neutering format";
|
||||
mainProgram = "cart";
|
||||
homepage = "https://github.com/CybercentreCanada/cart";
|
||||
changelog = "https://github.com/CybercentreCanada/cart/releases/tag/${src.tag}";
|
||||
changelog = "https://github.com/CybercentreCanada/cart/releases/tag/${finalAttrs.src.tag}";
|
||||
license = with lib.licenses; [ mit ];
|
||||
maintainers = with lib.maintainers; [ fab ];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user