blob: 1a8535b10f5657043f7b68eff4ce4b7e26d1ccdf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
git,
}:
buildPythonPackage rec {
pname = "versiontag";
version = "1.2.0";
pyproject = true;
src = fetchFromGitHub {
owner = "thelabnyc";
repo = "python-versiontag";
rev = "r${version}";
sha256 = "1axv2214ykgv5adajv10v2zy5fr9v77db54rkik6ja29p66zl90n";
};
postPatch = ''
substituteInPlace setup.py \
--replace-fail "get_version(pypi=True)" '"${version}"'
'';
build-system = [ setuptools ];
nativeCheckInputs = [ git ];
pythonImportsCheck = [ "versiontag" ];
meta = {
description = "Python library designed to make accessing the current version number of your software easy";
homepage = "https://github.com/thelabnyc/python-versiontag";
license = lib.licenses.isc;
maintainers = with lib.maintainers; [ MaskedBelgian ];
};
}
|