Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 setuptools, 6 versioningit, 7 platformdirs, 8}: 9 10buildPythonPackage rec { 11 pname = "pueblo"; 12 version = "0.0.9"; 13 pyproject = true; 14 15 # This tarball doesn't include tests unfortuneatly, and the GitHub tarball 16 # could have been an alternative, but versioningit fails to detect the 17 # version of it correctly, even with setuptools-scm and 18 # SETUPTOOLS_SCM_PRETEND_VERSION = version added. Since this is a pure Python 19 # package, we can rely on upstream to run the tests before releasing, and it 20 # should work for us as well. 21 src = fetchPypi { 22 inherit pname version; 23 hash = "sha256-Ea5tzutZtuf1a5s46JJND6ovKi3C5UruR8e1RZucPRc="; 24 }; 25 26 nativeBuildInputs = [ 27 setuptools 28 versioningit 29 ]; 30 31 propagatedBuildInputs = [ 32 # contextlib-chdir 33 # importlib-metadata 34 platformdirs 35 ]; 36 37 pythonImportsCheck = [ "pueblo" ]; 38 39 meta = with lib; { 40 description = "Pueblo - a Python toolbox library"; 41 homepage = "https://pypi.org/project/pueblo/"; 42 license = licenses.lgpl3Only; 43 maintainers = with maintainers; [ doronbehar ]; 44 }; 45}