Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 flit-core, 6 pytestCheckHook, 7 braceexpand, 8 inform, 9}: 10 11buildPythonPackage rec { 12 pname = "shlib"; 13 version = "1.6"; 14 pyproject = true; 15 16 src = fetchFromGitHub { 17 owner = "KenKundert"; 18 repo = "shlib"; 19 rev = "refs/tags/v${version}"; 20 hash = "sha256-f2jJgpjybutCpYnIT+RihtoA1YlXdhTs+MvV8bViSMQ="; 21 }; 22 23 postPatch = '' 24 patchShebangs . 25 ''; 26 27 build-system = [ flit-core ]; 28 29 dependencies = [ 30 braceexpand 31 inform 32 ]; 33 34 nativeCheckInputs = [ pytestCheckHook ]; 35 36 pythonImportsCheck = [ "shlib" ]; 37 38 meta = with lib; { 39 description = "shell library"; 40 homepage = "https://github.com/KenKundert/shlib"; 41 changelog = "https://github.com/KenKundert/shlib/releases/tag/v${version}"; 42 license = licenses.gpl3Plus; 43 maintainers = with maintainers; [ jpetrucciani ]; 44 }; 45}