Unverified Commit effc7e5b authored by OTABI Tomoya's avatar OTABI Tomoya Committed by GitHub
Browse files

Merge pull request #331550 from nbraud/pkgs/homf

python3.homf: init at 1.0.0
parents 31ec0749 db150cf9
Loading
Loading
Loading
Loading
+49 −0
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  # pytestCheckHook,
  pythonOlder,

  hatchling,
  packaging,
}:

buildPythonPackage rec {
  pname = "homf";
  version = "1.0.0";
  pyproject = true;
  disabled = pythonOlder "3.8";

  src = fetchFromGitHub {
    owner = "duckinator";
    repo = "homf";
    rev = "refs/tags/v${version}";
    hash = "sha256-PU5VjBIVSMupTBh/qvVuZSFWpBbJOylCR02lONn9/qw=";
  };

  build-system = [ hatchling ];

  pythonRelaxDeps = [ "packaging" ];

  dependencies = [ packaging ];

  pythonImportsCheck = [
    "homf"
    "homf.api"
    "homf.api.github"
    "homf.api.pypi"
  ];

  # There are currently no checks which do not require network access, which breaks the check hook somehow?
  # nativeCheckInputs = [ pytestCheckHook ];
  # pytestFlagsArray = [ "-m 'not network'" ];

  meta = with lib; {
    description = "Asset download tool for GitHub Releases, PyPi, etc.";
    mainProgram = "homf";
    homepage = "https://github.com/duckinator/homf";
    license = licenses.mit;
    maintainers = with maintainers; [ nicoo ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -5605,6 +5605,8 @@ self: super: with self; {
  homepluscontrol = callPackage ../development/python-modules/homepluscontrol { };
  homf = callPackage ../development/python-modules/homf { };
  hoomd-blue = callPackage ../development/python-modules/hoomd-blue { };
  hopcroftkarp = callPackage ../development/python-modules/hopcroftkarp { };