diff --git a/pkgs/development/python-modules/homf/default.nix b/pkgs/development/python-modules/homf/default.nix new file mode 100644 index 000000000000..2e411eedc7e8 --- /dev/null +++ b/pkgs/development/python-modules/homf/default.nix @@ -0,0 +1,49 @@ +{ + 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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index e03d18b47b2f..a97bd5fd53d9 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -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 { };