Skip to content

Commit

Permalink
python313Packages.typepy: refactor, use setuptools-scm
Browse files Browse the repository at this point in the history
setuptools-scm is required to report the correct package version
  • Loading branch information
mjoerg committed Feb 7, 2025
1 parent e024f6f commit 1b092ec
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions pkgs/development/python-modules/typepy/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools-scm,
mbstrdecoder,
python-dateutil,
pytz,
Expand All @@ -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 = [
Expand All @@ -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 ];
};
}

0 comments on commit 1b092ec

Please sign in to comment.