mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 07:46:09 +01:00
git-big-picture: 1.0.0 -> 1.1.1
- Migrate from fetchFromGitHub to fetchPypi to ease SHA256 handling - Drop tests (while not included with PyPI releases) - Install a man page (as shipped by upstream) - Move buildInputs to runtime only Co-Authored-By: Silvan Mosberger <contact@infinisil.com>
This commit is contained in:
parent
b85a0ba2c2
commit
201b24adc5
1 changed files with 9 additions and 16 deletions
|
@ -1,27 +1,20 @@
|
|||
{ fetchFromGitHub, python3Packages, lib, git, graphviz }:
|
||||
{ python3Packages, lib, git, graphviz }:
|
||||
|
||||
python3Packages.buildPythonApplication rec {
|
||||
pname = "git-big-picture";
|
||||
version = "1.0.0";
|
||||
version = "1.1.1";
|
||||
format = "wheel";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "git-big-picture";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "14yf71iwgk78nw8w0bpijsnnl4vg3bvxsw3vvypxmbrc1nh0bdha";
|
||||
src = python3Packages.fetchPypi {
|
||||
inherit format version;
|
||||
pname = "git_big_picture"; # underscores needed for working download URL
|
||||
python = "py3"; # i.e. no Python 2.7
|
||||
sha256 = "a20a480057ced1585c4c38497d27a5012f12dd29697313f0bb8fa6ddbb5c17d8";
|
||||
};
|
||||
|
||||
buildInputs = [ git graphviz ];
|
||||
|
||||
# NOTE: Tests are disabled due to unpackaged test dependency "Scruf".
|
||||
# When bumping to 1.1.0, please re-enable and use:
|
||||
#checkInputs = [ cram git pytest ];
|
||||
#checkPhase = "pytest test.py";
|
||||
doCheck = false;
|
||||
|
||||
postFixup = ''
|
||||
wrapProgram $out/bin/git-big-picture \
|
||||
--prefix PATH ":" ${ lib.makeBinPath buildInputs }
|
||||
--prefix PATH ":" ${ lib.makeBinPath [ git graphviz ] }
|
||||
'';
|
||||
|
||||
meta = {
|
||||
|
|
Loading…
Reference in a new issue