blob: 47c9d5f21aa2604b1fd1dcc6947c80f3309db7f5 (
about) (
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,
fetchPypi,
setuptools,
versioningit,
}:
buildPythonPackage rec {
pname = "verlib2";
version = "0.2.1";
pyproject = true;
# This tarball doesn't include tests unfortuneatly, and the GitHub tarball
# could have been an alternative, but versioningit fails to detect the
# version of it correctly, even with setuptools-scm and
# SETUPTOOLS_SCM_PRETEND_VERSION = version added. Since this is a pure Python
# package, we can rely on upstream to run the tests before releasing, and it
# should work for us as well.
src = fetchPypi {
inherit pname version;
hash = "sha256-0+JmanzxCUK/E0dNdQkuuNdavUGqZ6p5UAQ/WUGdnT8=";
};
nativeBuildInputs = [
setuptools
versioningit
];
pythonImportsCheck = [ "verlib2" ];
meta = with lib; {
description = "Standalone variant of packaging.version, without anything else";
homepage = "https://pypi.org/project/verlib2/";
license = licenses.bsd2;
maintainers = with maintainers; [ doronbehar ];
};
}
|