depot/third_party/nixpkgs/pkgs/development/python-modules/single-source/default.nix
Default email 5ca88bfbb9 Project import generated by Copybara.
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
2024-07-31 10:19:44 +00:00

44 lines
976 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
importlib-metadata,
poetry-core,
pytest-mock,
pytestCheckHook,
pythonOlder,
}:
buildPythonPackage rec {
pname = "single-source";
version = "0.3.0";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "rabbit72";
repo = "single-source";
rev = "refs/tags/v${version}";
hash = "sha256-bhfMRIeJUd5JhN2tPww7fdbmHQ7ypcsZrYSa55v0+W8=";
};
nativeBuildInputs = [ poetry-core ];
propagatedBuildInputs = [ importlib-metadata ];
nativeCheckInputs = [
pytest-mock
pytestCheckHook
];
pythonImportsCheck = [ "single_source" ];
meta = with lib; {
description = "Access to the project version in Python code for PEP 621-style projects";
homepage = "https://github.com/rabbit72/single-source";
changelog = "https://github.com/rabbit72/single-source/releases/tag/v${version}";
license = licenses.mit;
maintainers = [ ];
};
}