2016-09-26 10:09:25 +01:00
|
|
|
{ pkgs, fetchurl, tk, pythonPackages }:
|
2013-07-13 00:09:53 +01:00
|
|
|
|
2016-09-26 10:09:25 +01:00
|
|
|
pythonPackages.buildPythonApplication rec {
|
2016-04-13 02:54:24 +01:00
|
|
|
version = "0.9.7";
|
2013-07-13 00:09:53 +01:00
|
|
|
name = "nvpy-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/cpbotha/nvpy/archive/v${version}.tar.gz";
|
2016-04-13 02:54:24 +01:00
|
|
|
sha256 = "1rd3vlaqkg16iz6qcw6rkbq0jmyvc0843wa3brnvn1nz0kla243f";
|
2013-07-13 00:09:53 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [tk];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
pythonPackages.markdown
|
|
|
|
pythonPackages.tkinter
|
2016-04-13 02:54:24 +01:00
|
|
|
pythonPackages.docutils
|
2013-07-13 00:09:53 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
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}"
|
|
|
|
'';
|
|
|
|
|
2013-08-21 00:23:40 +01:00
|
|
|
meta = with pkgs.lib; {
|
2013-07-13 00:09:53 +01:00
|
|
|
description = "A simplenote-syncing note-taking tool inspired by Notational Velocity";
|
|
|
|
homepage = "https://github.com/cpbotha/nvpy";
|
2013-08-21 00:23:40 +01:00
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.bsd3;
|
2013-07-13 00:09:53 +01:00
|
|
|
};
|
|
|
|
}
|