nixpkgs/pkgs/development/python-modules/pbr/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

38 lines
745 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, setuptools
, callPackage
}:
buildPythonPackage rec {
pname = "pbr";
version = "6.0.0";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-0TdxIqWgDi+UDuSCmZUY7+FtdF1COmcMJ3c9+8PJp9k=";
};
nativeBuildInputs = [
setuptools
];
# check in passthru.tests.pytest to escape infinite recursion with fixtures
doCheck = false;
passthru.tests = {
tests = callPackage ./tests.nix { };
};
pythonImportsCheck = [ "pbr" ];
meta = with lib; {
description = "Python Build Reasonableness";
mainProgram = "pbr";
homepage = "https://github.com/openstack/pbr";
license = licenses.asl20;
maintainers = teams.openstack.members;
};
}