mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-26 23:03:41 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
49 lines
845 B
Nix
49 lines
845 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;
|
|
sha256 = "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 ];
|
|
};
|
|
}
|