depot/third_party/nixpkgs/pkgs/development/python-modules/single-version/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

33 lines
754 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
poetry-core,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "single-version";
version = "1.6.0";
format = "pyproject";
src = fetchFromGitHub {
owner = "hongquan";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-dUmJhNCPuq/7WGzFQXLjb8JrQgQn7qyBqzPWaKzD9hc=";
};
nativeBuildInputs = [ poetry-core ];
nativeCheckInputs = [ pytestCheckHook ];
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 ];
};
}