python313Packages.tabledata: refactor, use setuptools-scm
setuptools-scm is required to report the correct package version
This commit is contained in:
parent
87ba9a0fc0
commit
e024f6f293
@ -2,6 +2,7 @@
|
|||||||
buildPythonPackage,
|
buildPythonPackage,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
lib,
|
lib,
|
||||||
|
setuptools-scm,
|
||||||
dataproperty,
|
dataproperty,
|
||||||
typepy,
|
typepy,
|
||||||
pytestCheckHook,
|
pytestCheckHook,
|
||||||
@ -10,27 +11,29 @@
|
|||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "tabledata";
|
pname = "tabledata";
|
||||||
version = "1.3.4";
|
version = "1.3.4";
|
||||||
format = "setuptools";
|
pyproject = true;
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "thombashi";
|
owner = "thombashi";
|
||||||
repo = pname;
|
repo = "tabledata";
|
||||||
tag = "v${version}";
|
tag = "v${version}";
|
||||||
hash = "sha256-kZAEKUOcxb3fK3Oh6+4byJJlB/xzDAEGNpUDEKyVkhs=";
|
hash = "sha256-kZAEKUOcxb3fK3Oh6+4byJJlB/xzDAEGNpUDEKyVkhs=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
build-system = [ setuptools-scm ];
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
dataproperty
|
dataproperty
|
||||||
typepy
|
typepy
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeCheckInputs = [ pytestCheckHook ];
|
nativeCheckInputs = [ pytestCheckHook ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = {
|
||||||
homepage = "https://github.com/thombashi/tabledata";
|
homepage = "https://github.com/thombashi/tabledata";
|
||||||
description = "Library to represent tabular data";
|
description = "Library to represent tabular data";
|
||||||
changelog = "https://github.com/thombashi/tabledata/releases/tag/${src.tag}";
|
changelog = "https://github.com/thombashi/tabledata/releases/tag/${src.tag}";
|
||||||
maintainers = with maintainers; [ genericnerdyusername ];
|
maintainers = with lib.maintainers; [ genericnerdyusername ];
|
||||||
license = licenses.mit;
|
license = lib.licenses.mit;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user