Commit 7c3c6644 authored by aleksana's avatar aleksana
Browse files

python3Packages.pyhibp: init at 4.2.0

parent ec7f61e5
Loading
Loading
Loading
Loading
+46 −0
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchFromGitLab,
  setuptools,
  requests,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "pyhibp";
  version = "4.2.0";
  pyproject = true;

  src = fetchFromGitLab {
    group = "kitsunix";
    owner = "pyHIBP";
    repo = "pyHIBP";
    tag = "v${version}";
    hash = "sha256-2LJA989hpG5X6o+zCTSU0RRd0Z4zd29RAtp/jBW8Clo=";
  };

  build-system = [ setuptools ];

  dependencies = [ requests ];

  nativeCheckInputs = [ pytestCheckHook ];

  disabledTests = [
    # All require internet access
    "TestIsPasswordBreached"
    "TestSuffixSearch"
    "TestGetAllBreaches"
    "TestGetSingleBreach"
    "TestGetDataClasses"
  ];

  pythonImportsCheck = [ "pyhibp" ];

  meta = {
    description = "Python interface to Troy Hunt's 'Have I Been Pwned?' public API";
    homepage = "https://gitlab.com/kitsunix/pyHIBP/pyHIBP";
    license = lib.licenses.agpl3Plus;
    maintainers = with lib.maintainers; [ aleksana ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -13362,6 +13362,8 @@ self: super: with self; {
  pyhepmc = callPackage ../development/python-modules/pyhepmc { };
  pyhibp = callPackage ../development/python-modules/pyhibp { };
  pyhidra = callPackage ../development/python-modules/pyhidra { };
  pyhik = callPackage ../development/python-modules/pyhik { };