depot/third_party/nixpkgs/pkgs/development/python-modules/pysnmp-pysmi/default.nix
Default email 22017988c6 Project import generated by Copybara.
GitOrigin-RevId: c777cdf5c564015d5f63b09cc93bef4178b19b01
2022-04-27 11:35:20 +02:00

46 lines
781 B
Nix

{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, ply
, poetry-core
, requests
}:
buildPythonPackage rec {
pname = "pysnmp-pysmi";
version = "1.1.8";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "pysnmp";
repo = "pysmi";
rev = "v${version}";
hash = "sha256-nsIEZPD7bfbePZukkudP0ZH/m8Be88QkVDM5PdjNHVk=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
ply
requests
];
# Circular dependency with pysnmplib
doCheck = false;
pythonImportsCheck = [
"pysmi"
];
meta = with lib; {
description = "SNMP MIB parser";
homepage = "https://github.com/pysnmp/pysmi";
license = licenses.bsd2;
maintainers = with maintainers; [ fab ];
};
}