mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-17 11:13:30 +00:00
abdf5dc772
It is is now provided automatically, when `pythonRelaxDeps` or `pythonRemoveDeps` is defined through `mk-python-derivation`.
44 lines
913 B
Nix
44 lines
913 B
Nix
{ lib
|
|
, python3
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
pname = "pysentation";
|
|
version = "1.0.0";
|
|
format = "pyproject";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mimseyedi";
|
|
repo = "pysentation";
|
|
rev = "v${version}";
|
|
hash = "sha256-TwHDXWgGWuQVgatBDc1iympnb6dy4xYThLR5MouEZHA=";
|
|
};
|
|
|
|
nativeBuildInputs = with python3.pkgs; [
|
|
setuptools
|
|
];
|
|
|
|
pythonRelaxDeps = [
|
|
"click"
|
|
"rich"
|
|
];
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
click
|
|
getkey
|
|
rich
|
|
];
|
|
|
|
pythonImportsCheck = [ "pysentation" ];
|
|
|
|
meta = with lib; {
|
|
description = "CLI for displaying Python presentations";
|
|
homepage = "https://github.com/mimseyedi/pysentation";
|
|
changelog = "https://github.com/mimseyedi/pysentation/releases/tag/${src.rev}";
|
|
license = licenses.gpl3Only;
|
|
maintainers = with maintainers; [ figsoda ];
|
|
mainProgram = "pysentation";
|
|
};
|
|
}
|