mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 21:03:15 +00:00
4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
59 lines
1.2 KiB
Nix
59 lines
1.2 KiB
Nix
{ lib, stdenv
|
|
, git
|
|
, gnupg1
|
|
, python3Packages
|
|
}:
|
|
|
|
with python3Packages; buildPythonApplication rec {
|
|
pname = "reno";
|
|
version = "3.1.0";
|
|
|
|
# Must be built from python sdist because of versioning quirks
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "2510e3aae4874674187f88f22f854e6b0ea1881b77039808a68ac1a5e8ee69b6";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
dulwich
|
|
pbr
|
|
pyyaml
|
|
setuptools # required for finding pkg_resources at runtime
|
|
];
|
|
|
|
checkInputs = [
|
|
# Python packages
|
|
pytestCheckHook
|
|
docutils
|
|
fixtures
|
|
sphinx
|
|
testtools
|
|
testscenarios
|
|
|
|
# Required programs to run all tests
|
|
git
|
|
gnupg1
|
|
];
|
|
|
|
# remove b/c doesn't list all dependencies, and requires a few packages not in nixpkgs
|
|
postPatch = ''
|
|
rm test-requirements.txt
|
|
'';
|
|
|
|
disabledTests = [
|
|
"test_build_cache_db" # expects to be run from a git repository
|
|
];
|
|
|
|
# verify executable
|
|
postCheck = ''
|
|
$out/bin/reno -h
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Release Notes Manager";
|
|
homepage = "https://docs.openstack.org/reno/latest";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ drewrisinger guillaumekoenig ];
|
|
};
|
|
}
|