![adisbladis](/assets/img/avatar_default.png)
Long term we should move everything over to `pyproject = true`, but in the mean time we can work towards deprecating the implicit `format` paremeter. cc https://github.com/NixOS/nixpkgs/issues/253154 cc @mweinelt @figsoda
31 lines
806 B
Nix
31 lines
806 B
Nix
{ lib, buildPythonPackage, fetchFromGitHub, git }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "versiontag";
|
|
version = "1.2.0";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "thelabnyc";
|
|
repo = "python-versiontag";
|
|
rev = "r${version}";
|
|
sha256 = "1axv2214ykgv5adajv10v2zy5fr9v77db54rkik6ja29p66zl90n";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace setup.py \
|
|
--replace "get_version(pypi=True)" '"${version}"'
|
|
'';
|
|
|
|
nativeCheckInputs = [ git ];
|
|
|
|
pythonImportsCheck = [ "versiontag" ];
|
|
|
|
meta = with lib; {
|
|
description = "Python library designed to make accessing the current version number of your software easy";
|
|
homepage = "https://github.com/thelabnyc/python-versiontag";
|
|
license = licenses.isc;
|
|
maintainers = with maintainers; [ MaskedBelgian ];
|
|
};
|
|
}
|