Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / single-version / default.nix
blob558126bbbd71ee4c4dd791f640fa6d445a7c4777
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , fetchpatch
5 , poetry-core
6 , pytestCheckHook
7 }:
9 buildPythonPackage rec {
10   pname = "single-version";
11   version = "1.6.0";
12   format = "pyproject";
14   src = fetchFromGitHub {
15     owner = "hongquan";
16     repo = pname;
17     rev = "refs/tags/v${version}";
18     hash = "sha256-dUmJhNCPuq/7WGzFQXLjb8JrQgQn7qyBqzPWaKzD9hc=";
19   };
21   nativeBuildInputs = [ poetry-core ];
23   nativeCheckInputs = [ pytestCheckHook ];
25   pythonImportsCheck = [ "single_version" ];
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 = with maintainers; [ wolfangaukang ];
32   };