at master 1.0 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 setuptools, 6 versioningit, 7}: 8 9buildPythonPackage rec { 10 pname = "verlib2"; 11 version = "0.3.1"; 12 pyproject = true; 13 14 # This tarball doesn't include tests unfortunately, and the GitHub tarball 15 # could have been an alternative, but versioningit fails to detect the 16 # version of it correctly, even with setuptools-scm and 17 # SETUPTOOLS_SCM_PRETEND_VERSION = version added. Since this is a pure Python 18 # package, we can rely on upstream to run the tests before releasing, and it 19 # should work for us as well. 20 src = fetchPypi { 21 inherit pname version; 22 hash = "sha256-KGLxlSjbQA0TAlOitxx8NhbuFOHVS/aDO8CSnSzd0UE="; 23 }; 24 25 nativeBuildInputs = [ 26 setuptools 27 versioningit 28 ]; 29 30 pythonImportsCheck = [ "verlib2" ]; 31 32 meta = with lib; { 33 description = "Standalone variant of packaging.version, without anything else"; 34 homepage = "https://pypi.org/project/verlib2/"; 35 license = licenses.bsd2; 36 maintainers = with maintainers; [ doronbehar ]; 37 }; 38}