depot/third_party/nixpkgs/pkgs/applications/editors/nvpy/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

42 lines
991 B
Nix

{ pkgs, fetchFromGitHub, python3Packages }:
let
pythonPackages = python3Packages;
in pythonPackages.buildPythonApplication rec {
version = "2.2.0";
pname = "nvpy";
src = fetchFromGitHub {
owner = "cpbotha";
repo = pname;
rev = "refs/tags/v${version}";
sha256 = "sha256-eWvD1k0wbzo0G46/LEOlHl1wLvc4JHLL1fg6wuCHiQY=";
};
propagatedBuildInputs = with pythonPackages; [
markdown
docutils
simplenote
tkinter
];
# 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"
'';
meta = with pkgs.lib; {
description = "A simplenote-syncing note-taking tool inspired by Notational Velocity";
homepage = "https://github.com/cpbotha/nvpy";
platforms = platforms.linux;
license = licenses.bsd3;
mainProgram = "nvpy";
};
}