mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 07:46:09 +01:00
grip: move to separate file, pname
(review feedback, thanks!)
This commit is contained in:
parent
630574ebb1
commit
4d2a0cb605
2 changed files with 52 additions and 35 deletions
51
pkgs/development/python-modules/grip/default.nix
Normal file
51
pkgs/development/python-modules/grip/default.nix
Normal file
|
@ -0,0 +1,51 @@
|
|||
{ stdenv
|
||||
, fetchFromGitHub
|
||||
, fetchpatch
|
||||
# Python bits:
|
||||
, buildPythonPackage
|
||||
, pytest
|
||||
, responses
|
||||
, docopt
|
||||
, flask
|
||||
, markdown
|
||||
, path-and-address
|
||||
, pygments
|
||||
, requests
|
||||
, tabulate
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "grip";
|
||||
version = "4.4.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "joeyespo";
|
||||
repo = "grip";
|
||||
rev = "v${version}";
|
||||
sha256 = "1768n3w40qg1njkzqjyl5gkva0h31k8h250821v69imj1zimymag";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# Render "front matter", used in our RFC template and elsewhere
|
||||
(fetchpatch {
|
||||
url = https://github.com/joeyespo/grip/pull/249.patch;
|
||||
sha256 = "07za5iymfv647dfrvi6hhj54a96hgjyarys51zbi08c51shqyzpg";
|
||||
})
|
||||
];
|
||||
|
||||
buildInputs = [ pytest responses ];
|
||||
|
||||
propagatedBuildInputs = [ docopt flask markdown path-and-address pygments requests tabulate ];
|
||||
|
||||
checkPhase = ''
|
||||
export PATH="$PATH:$out/bin"
|
||||
py.test -xm "not assumption"
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Preview GitHub Markdown files like Readme locally before committing them";
|
||||
homepage = https://github.com/joeyespo/grip;
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ koral ];
|
||||
};
|
||||
}
|
|
@ -4894,41 +4894,7 @@ in {
|
|||
};
|
||||
};
|
||||
|
||||
grip = buildPythonPackage rec {
|
||||
version = "4.4.0";
|
||||
name = "grip-${version}";
|
||||
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "joeyespo";
|
||||
repo = "grip";
|
||||
rev = "v${version}";
|
||||
sha256 = "1768n3w40qg1njkzqjyl5gkva0h31k8h250821v69imj1zimymag";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# Render "front matter", used in our RFC template and elsewhere
|
||||
(pkgs.fetchpatch {
|
||||
url = https://github.com/joeyespo/grip/pull/249.patch;
|
||||
sha256 = "07za5iymfv647dfrvi6hhj54a96hgjyarys51zbi08c51shqyzpg";
|
||||
})
|
||||
];
|
||||
|
||||
buildInputs = with self; [ pytest responses ];
|
||||
|
||||
propagatedBuildInputs = with self; [ docopt flask markdown path-and-address pygments requests tabulate ];
|
||||
|
||||
checkPhase = ''
|
||||
export PATH="$PATH:$out/bin"
|
||||
py.test -xm "not assumption"
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Preview GitHub Markdown files like Readme locally before committing them";
|
||||
homepage = https://github.com/joeyespo/grip;
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ koral ];
|
||||
};
|
||||
};
|
||||
grip = callPackage ../development/python-modules/grip { };
|
||||
|
||||
gst-python = callPackage ../development/python-modules/gst-python {
|
||||
gst-plugins-base = pkgs.gst_all_1.gst-plugins-base;
|
||||
|
|
Loading…
Reference in a new issue