Commit 5ee577c1 authored by Martin Joerg's avatar Martin Joerg
Browse files

python313Packages.dataproperty: refactor, use setuptools-scm

setuptools-scm is required to report the correct package version
parent 4fbb080e
Loading
Loading
Loading
Loading
+10 −7
Original line number Diff line number Diff line
@@ -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 ];
  };
}