at 24.05-pre 1.1 kB view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pytestCheckHook 5, pythonOlder 6, setuptools 7, setuptools-scm 8}: 9 10buildPythonPackage rec { 11 pname = "semver"; 12 version = "3.0.1"; 13 format = "pyproject"; 14 15 disabled = pythonOlder "3.7"; 16 17 src = fetchFromGitHub { 18 owner = "python-semver"; 19 repo = "python-semver"; 20 rev = "refs/tags/${version}"; 21 hash = "sha256-vVi0+Pq8VpYMy73JSrvi9ranOzvFaHpcPZRt8gMkkFs="; 22 }; 23 24 nativeBuildInputs = [ 25 setuptools 26 setuptools-scm 27 ]; 28 29 nativeCheckInputs = [ 30 pytestCheckHook 31 ]; 32 33 postPatch = '' 34 sed -i "/--cov/d" setup.cfg 35 sed -i "/--no-cov-on-fail/d" setup.cfg 36 ''; 37 38 disabledTestPaths = [ 39 # Don't test the documentation 40 "docs/*.rst" 41 ]; 42 43 pythonImportsCheck = [ 44 "semver" 45 ]; 46 47 meta = with lib; { 48 description = "Python package to work with Semantic Versioning (http://semver.org/)"; 49 homepage = "https://python-semver.readthedocs.io/"; 50 changelog = "https://github.com/python-semver/python-semver/releases/tag/3.0.0"; 51 license = licenses.bsd3; 52 maintainers = with maintainers; [ np ]; 53 }; 54}