1{ lib, buildPythonPackage, fetchFromGitHub, poetry-core, pytestCheckHook }: 2 3buildPythonPackage rec { 4 pname = "single-version"; 5 version = "1.5.1"; 6 format = "pyproject"; 7 8 src = fetchFromGitHub { 9 owner = "hongquan"; 10 repo = pname; 11 rev = "v${version}"; 12 sha256 = "sha256-I8ATQzPRH9FVjqPoqrNjYMBU5azpmkLjRmHcz943C10="; 13 }; 14 15 patches = [ 16 ./0001-set-poetry-core.patch 17 ]; 18 19 nativeBuildInputs = [ poetry-core ]; 20 21 checkInputs = [ pytestCheckHook ]; 22 23 pythonImportsCheck = [ "single_version" ]; 24 25 meta = with lib; { 26 description = "Utility to let you have a single source of version in your code base"; 27 homepage = "https://github.com/hongquan/single-version"; 28 license = licenses.mit; 29 maintainers = with maintainers; [ wolfangaukang ]; 30 }; 31}