2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
pytest,
|
|
|
|
invoke,
|
|
|
|
pythonOlder,
|
2022-04-15 01:41:22 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pylnk3";
|
|
|
|
version = "0.4.2";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2022-04-15 01:41:22 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit version;
|
|
|
|
pname = "pylnk3";
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-yu4BNvYai3iBVNyOfAOsLd5XrcFw8cR4arRyFJHKbpk=";
|
2022-04-15 01:41:22 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
pytest
|
|
|
|
invoke
|
2022-04-15 01:41:22 +00:00
|
|
|
];
|
|
|
|
# There are no tests in pylnk3.
|
|
|
|
doCheck = false;
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "pylnk3" ];
|
2022-04-15 01:41:22 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python library for reading and writing Windows shortcut files (.lnk)";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "pylnk3";
|
2022-04-15 01:41:22 +00:00
|
|
|
homepage = "https://github.com/strayge/pylnk";
|
|
|
|
license = with licenses; [ lgpl3Only ];
|
|
|
|
maintainers = with maintainers; [ fedx-sudo ];
|
|
|
|
};
|
|
|
|
}
|