nixpkgs/pkgs/development/python-modules/yangson/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

45 lines
748 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, setuptools-scm
, pyxb
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "yangson";
version = "1.4.16";
format = "setuptools";
src = fetchPypi {
inherit pname version;
hash = "sha256-P447JnQ8zhalcg9k8prW1QQE3h5PqY155hFtvLvBVSI=";
};
nativeBuildInputs = [
setuptools-scm
];
propagatedBuildInputs = [
pyxb
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"yangson"
];
meta = with lib; {
description = "Library for working with data modelled in YANG";
homepage = "https://github.com/CZ-NIC/yangson";
license = with licenses; [
gpl3Plus
lgpl3Plus
];
maintainers = with maintainers; [ hexa ];
};
}