lol
1{
2 pkgs,
3 fetchFromGitHub,
4 python3Packages,
5}:
6
7let
8 pythonPackages = python3Packages;
9in
10pythonPackages.buildPythonApplication rec {
11 pname = "nvpy";
12 version = "2.3.1";
13 pyproject = true;
14
15 src = fetchFromGitHub {
16 owner = "cpbotha";
17 repo = "nvpy";
18 tag = "v${version}";
19 sha256 = "sha256-guNdLu/bCk89o5M3gQU7J0W4h7eZdLHM0FG5IAPLE7c=";
20 };
21
22 build-system = with pythonPackages; [ setuptools ];
23
24 dependencies = with pythonPackages; [
25 markdown
26 docutils
27 simplenote
28 tkinter
29 ];
30
31 # No tests
32 doCheck = false;
33
34 postInstall = ''
35 install -dm755 "$out/share/licenses/nvpy/"
36 install -m644 LICENSE.txt "$out/share/licenses/nvpy/LICENSE"
37
38 install -dm755 "$out/share/doc/nvpy/"
39 install -m644 README.rst "$out/share/doc/nvpy/README"
40 '';
41
42 pythonImportsCheck = [ "nvpy" ];
43
44 meta = with pkgs.lib; {
45 description = "Simplenote-syncing note-taking tool inspired by Notational Velocity";
46 homepage = "https://github.com/cpbotha/nvpy";
47 platforms = platforms.linux;
48 license = licenses.bsd3;
49 mainProgram = "nvpy";
50 };
51}