Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, hatchling 5, packaging 6, pytestCheckHook 7}: 8 9buildPythonPackage rec { 10 pname = "hatch-requirements-txt"; 11 version = "0.3.0"; 12 format = "pyproject"; 13 14 src = fetchFromGitHub { 15 owner = "repo-helper"; 16 repo = "hatch-requirements-txt"; 17 rev = "refs/tags/v${version}"; 18 hash = "sha256-Gyt5Fs8uqVe0cOKtxFeg1n1WMyeK5Iokh71ynb2i5cM="; 19 }; 20 21 nativeBuildInputs = [ 22 hatchling 23 ]; 24 25 propagatedBuildInputs = [ 26 hatchling 27 packaging 28 ]; 29 30 doCheck = false; # missing coincidence dependency 31 32 nativeCheckInputs = [ 33 pytestCheckHook 34 ]; 35 36 meta = with lib; { 37 changelog = "https://github.com/repo-helper/hatch-requirements-txt/releases/tag/${version}"; 38 description = "Hatchling plugin to read project dependencies from requirements.txt"; 39 homepage = "https://github.com/repo-helper/hatch-requirements-txt"; 40 license = licenses.mit; 41 maintainers = with maintainers; [ ]; 42 }; 43} 44