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