mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 05:04:00 +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.
46 lines
776 B
Nix
46 lines
776 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, fixtures
|
|
, mock
|
|
, pbr
|
|
, pytest-cov
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, requests
|
|
, six
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pyopnsense";
|
|
version = "0.3.0";
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "06rssdb3zhccnm63z96mw5yd38d9i99fgigfcdxn9divalbbhp5a";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
pbr
|
|
six
|
|
requests
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
fixtures
|
|
mock
|
|
pytest-cov
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "pyopnsense" ];
|
|
|
|
meta = with lib; {
|
|
description = "Python client for the OPNsense API";
|
|
homepage = "https://github.com/mtreinish/pyopnsense";
|
|
license = with licenses; [ gpl3Plus ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|