From 5ee577c1df6a15bebc47e0a708227bdfbd7c10af Mon Sep 17 00:00:00 2001 From: Martin Joerg Date: Fri, 7 Feb 2025 16:42:45 +0000 Subject: [PATCH] python313Packages.dataproperty: refactor, use setuptools-scm setuptools-scm is required to report the correct package version --- .../python-modules/dataproperty/default.nix | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/dataproperty/default.nix b/pkgs/development/python-modules/dataproperty/default.nix index 1b65ced8353f..050d0351fff3 100644 --- a/pkgs/development/python-modules/dataproperty/default.nix +++ b/pkgs/development/python-modules/dataproperty/default.nix @@ -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 ]; }; }