nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 53 lines 1.2 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 callPackage, 5 fetchFromGitHub, 6 # pytestCheckHook, 7 versionCheckHook, 8 9 hatchling, 10 packaging, 11}: 12 13buildPythonPackage rec { 14 pname = "homf"; 15 version = "1.1.1"; 16 pyproject = true; 17 18 src = fetchFromGitHub { 19 owner = "duckinator"; 20 repo = "homf"; 21 tag = "v${version}"; 22 hash = "sha256-fDH6uJ2d/Jsnuudv+Qlv1tr3slxOJWh7b4smGS32n9A="; 23 }; 24 25 build-system = [ hatchling ]; 26 27 pythonRelaxDeps = [ "packaging" ]; 28 dependencies = [ packaging ]; 29 30 pythonImportsCheck = [ 31 "homf" 32 "homf.api" 33 "homf.api.github" 34 "homf.api.pypi" 35 ]; 36 37 # There are currently no checks which do not require network access, which breaks the check hook somehow? 38 # nativeCheckInputs = [ pytestCheckHook ]; 39 # disabledTestMarks = [ "network" ]; 40 41 nativeBuildInputs = [ versionCheckHook ]; 42 43 # (Ab)using `callPackage` as a fix-point operator, so tests can use the `homf` drv 44 passthru.tests = callPackage ./tests.nix { }; 45 46 meta = { 47 description = "Asset download tool for GitHub Releases, PyPi, etc"; 48 mainProgram = "homf"; 49 homepage = "https://github.com/duckinator/homf"; 50 license = lib.licenses.mit; 51 maintainers = with lib.maintainers; [ nicoo ]; 52 }; 53}