Commit 1b092ec7 authored by Martin Joerg's avatar Martin Joerg
Browse files

python313Packages.typepy: refactor, use setuptools-scm

setuptools-scm is required to report the correct package version
parent e024f6f2
Loading
Loading
Loading
Loading
+9 −6
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools-scm,
  mbstrdecoder,
  python-dateutil,
  pytz,
@@ -14,18 +15,20 @@
buildPythonPackage rec {
  pname = "typepy";
  version = "1.3.4";
  format = "setuptools";
  pyproject = true;

  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "thombashi";
    repo = pname;
    repo = "typepy";
    tag = "v${version}";
    hash = "sha256-lgwXoEtv2nBRKiWQH5bDrAIfikKN3cOqcHLEdnSAMpc=";
  };

  propagatedBuildInputs = [ mbstrdecoder ];
  build-system = [ setuptools-scm ];

  dependencies = [ mbstrdecoder ];

  optional-dependencies = {
    datetime = [
@@ -42,11 +45,11 @@ buildPythonPackage rec {

  pythonImportsCheck = [ "typepy" ];

  meta = with lib; {
  meta = {
    description = "Library for variable type checker/validator/converter at a run time";
    homepage = "https://github.com/thombashi/typepy";
    changelog = "https://github.com/thombashi/typepy/releases/tag/${src.tag}";
    license = licenses.mit;
    maintainers = with maintainers; [ genericnerdyusername ];
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ genericnerdyusername ];
  };
}