depot/third_party/nixpkgs/pkgs/development/python-modules/linknlink/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

45 lines
925 B
Nix

{ lib
, buildPythonPackage
, cryptography
, fetchFromGitHub
, pythonOlder
, setuptools
}:
buildPythonPackage rec {
pname = "linknlink";
version = "0.1.9";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "xuanxuan000";
repo = "python-linknlink";
rev = "refs/tags/${version}";
hash = "sha256-msKunZsAxA9xpCJmG4MVXuJDMEqrCeShvAqOw8zjSPM=";
};
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
cryptography
];
pythonImportsCheck = [
"linknlink"
];
# Module has no test
doCheck = false;
meta = with lib; {
description = "Module and CLI for controlling Linklink devices locally";
homepage = "https://github.com/xuanxuan000/python-linknlink";
changelog = "https://github.com/xuanxuan000/python-linknlink/releases/tag/${version}";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}