nvpy: use python2
This commit is contained in:
parent
f17f64d203
commit
be343cbce4
@ -1,6 +1,8 @@
|
|||||||
{ pkgs, fetchurl, tk, pythonPackages }:
|
{ pkgs, fetchurl, tk, python2Packages }:
|
||||||
|
|
||||||
pythonPackages.buildPythonApplication rec {
|
let
|
||||||
|
pythonPackages = python2Packages;
|
||||||
|
in pythonPackages.buildPythonApplication rec {
|
||||||
version = "0.9.7";
|
version = "0.9.7";
|
||||||
name = "nvpy-${version}";
|
name = "nvpy-${version}";
|
||||||
|
|
||||||
@ -9,22 +11,21 @@ pythonPackages.buildPythonApplication rec {
|
|||||||
sha256 = "1rd3vlaqkg16iz6qcw6rkbq0jmyvc0843wa3brnvn1nz0kla243f";
|
sha256 = "1rd3vlaqkg16iz6qcw6rkbq0jmyvc0843wa3brnvn1nz0kla243f";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [tk];
|
propagatedBuildInputs = with pythonPackages; [
|
||||||
|
markdown
|
||||||
propagatedBuildInputs = [
|
tkinter
|
||||||
pythonPackages.markdown
|
docutils
|
||||||
pythonPackages.tkinter
|
|
||||||
pythonPackages.docutils
|
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# No tests
|
||||||
|
doCheck = false;
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
install -dm755 "$out/share/licenses/nvpy/"
|
install -dm755 "$out/share/licenses/nvpy/"
|
||||||
install -m644 LICENSE.txt "$out/share/licenses/nvpy/LICENSE"
|
install -m644 LICENSE.txt "$out/share/licenses/nvpy/LICENSE"
|
||||||
|
|
||||||
install -dm755 "$out/share/doc/nvpy/"
|
install -dm755 "$out/share/doc/nvpy/"
|
||||||
install -m644 README.rst "$out/share/doc/nvpy/README"
|
install -m644 README.rst "$out/share/doc/nvpy/README"
|
||||||
|
|
||||||
wrapProgram $out/bin/nvpy --set TK_LIBRARY "${tk}/lib/${tk.libPrefix}"
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with pkgs.lib; {
|
meta = with pkgs.lib; {
|
||||||
|
Loading…
Reference in New Issue
Block a user