nixpkgs/pkgs/development/python-modules/pynx584/default.nix
Martin Weinelt 0215034f25 python3.pkgs: Migrate fetchers to use hash
when they already rely on SRI hashes.
2023-03-03 23:59:29 +01:00

48 lines
843 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, flask
, mock
, prettytable
, pyserial
, pytestCheckHook
, pythonOlder
, requests
, stevedore
}:
buildPythonPackage rec {
pname = "pynx584";
version = "0.8.1";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "kk7ds";
repo = pname;
rev = version;
hash = "sha256-nF8+LbKqy/GrnPpykS5wEQMPoFYxi40pfM3Ys/UXCeo=";
};
propagatedBuildInputs = [
flask
prettytable
pyserial
requests
stevedore
];
nativeCheckInputs = [
mock
pytestCheckHook
];
pythonImportsCheck = [ "nx584" ];
meta = with lib; {
description = "Python package for communicating to NX584/NX8E interfaces";
homepage = "https://github.com/kk7ds/pynx584";
license = with licenses; [ gpl3Only ];
maintainers = with maintainers; [ fab ];
};
}