Skip to content

Commit

Permalink
nvpy: use python2
Browse files Browse the repository at this point in the history
  • Loading branch information
FRidh committed Oct 17, 2016
1 parent ca0f6b8 commit 80a5653
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions pkgs/applications/editors/nvpy/default.nix
Original file line number Diff line number Diff line change
@@ -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}";

Expand All @@ -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; {
Expand Down

0 comments on commit 80a5653

Please sign in to comment.