nixpkgs/pkgs/development/python-modules/pylnk3/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

42 lines
791 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pytest
, twine
, invoke
, pythonOlder
}:
buildPythonPackage rec {
pname = "pylnk3";
version = "0.4.2";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit version;
pname = "pylnk3";
hash = "sha256-yu4BNvYai3iBVNyOfAOsLd5XrcFw8cR4arRyFJHKbpk=";
};
propagatedBuildInputs = [
pytest
invoke
];
# There are no tests in pylnk3.
doCheck = false;
pythonImportsCheck = [
"pylnk3"
];
meta = with lib; {
description = "Python library for reading and writing Windows shortcut files (.lnk)";
mainProgram = "pylnk3";
homepage = "https://github.com/strayge/pylnk";
license = with licenses; [ lgpl3Only ];
maintainers = with maintainers; [ fedx-sudo ];
};
}