2022-03-10 19:12:11 +00:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub, poetry-core, pytestCheckHook }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "single-version";
|
|
|
|
version = "1.5.1";
|
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hongquan";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-I8ATQzPRH9FVjqPoqrNjYMBU5azpmkLjRmHcz943C10=";
|
2022-03-10 19:12:11 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
./0001-set-poetry-core.patch
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ poetry-core ];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2022-03-10 19:12:11 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [ "single_version" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Utility to let you have a single source of version in your code base";
|
|
|
|
homepage = "https://github.com/hongquan/single-version";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ wolfangaukang ];
|
|
|
|
};
|
|
|
|
}
|