mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-04 05:50:00 +00:00
49 lines
1.0 KiB
Nix
49 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
python3Packages,
|
|
}:
|
|
|
|
python3Packages.buildPythonApplication (finalAttrs: {
|
|
pname = "nvpy";
|
|
version = "2.3.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "cpbotha";
|
|
repo = "nvpy";
|
|
tag = "v${finalAttrs.version}";
|
|
sha256 = "sha256-guNdLu/bCk89o5M3gQU7J0W4h7eZdLHM0FG5IAPLE7c=";
|
|
};
|
|
|
|
build-system = with python3Packages; [ setuptools ];
|
|
|
|
dependencies = with python3Packages; [
|
|
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"
|
|
'';
|
|
|
|
pythonImportsCheck = [ "nvpy" ];
|
|
|
|
meta = {
|
|
description = "Simplenote-syncing note-taking tool inspired by Notational Velocity";
|
|
homepage = "https://github.com/cpbotha/nvpy";
|
|
platforms = lib.platforms.linux;
|
|
license = lib.licenses.bsd3;
|
|
mainProgram = "nvpy";
|
|
};
|
|
})
|