python313Packages.dataproperty: refactor, use setuptools-scm
setuptools-scm is required to report the correct package version
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
setuptools-scm,
|
||||
loguru,
|
||||
mbstrdecoder,
|
||||
pytestCheckHook,
|
||||
@@ -14,18 +15,20 @@
|
||||
buildPythonPackage rec {
|
||||
pname = "dataproperty";
|
||||
version = "1.1.0";
|
||||
format = "setuptools";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "thombashi";
|
||||
repo = pname;
|
||||
repo = "dataproperty";
|
||||
tag = "v${version}";
|
||||
hash = "sha256-IEEwdOcC9nKwVumWnjpZlqYKCFGwZebMh7nGdGVjibE=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
build-system = [ setuptools-scm ];
|
||||
|
||||
dependencies = [
|
||||
mbstrdecoder
|
||||
typepy
|
||||
tcolorpy
|
||||
@@ -42,11 +45,11 @@ buildPythonPackage rec {
|
||||
|
||||
pythonImportsCheck = [ "dataproperty" ];
|
||||
|
||||
meta = with lib; {
|
||||
meta = {
|
||||
description = "Library for extracting properties from data";
|
||||
homepage = "https://github.com/thombashi/dataproperty";
|
||||
homepage = "https://github.com/thombashi/DataProperty";
|
||||
changelog = "https://github.com/thombashi/DataProperty/releases/tag/${src.tag}";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ genericnerdyusername ];
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ genericnerdyusername ];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user