3
0
Fork 0
forked from mirrors/nixpkgs

nvpy: use python2

This commit is contained in:
Frederik Rietdijk 2016-10-17 14:13:33 +02:00
parent f17f64d203
commit be343cbce4

View file

@ -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";
name = "nvpy-${version}";
@ -9,22 +11,21 @@ pythonPackages.buildPythonApplication rec {
sha256 = "1rd3vlaqkg16iz6qcw6rkbq0jmyvc0843wa3brnvn1nz0kla243f";
};
buildInputs = [tk];
propagatedBuildInputs = [
pythonPackages.markdown
pythonPackages.tkinter
pythonPackages.docutils
propagatedBuildInputs = with pythonPackages; [
markdown
tkinter
docutils
];
# No tests
doCheck = false;
postInstall = ''
install -dm755 "$out/share/licenses/nvpy/"
install -m644 LICENSE.txt "$out/share/licenses/nvpy/LICENSE"
install -dm755 "$out/share/doc/nvpy/"
install -m644 README.rst "$out/share/doc/nvpy/README"
wrapProgram $out/bin/nvpy --set TK_LIBRARY "${tk}/lib/${tk.libPrefix}"
'';
meta = with pkgs.lib; {