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