Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 buildPythonPackage, 3 fetchFromGitHub, 4 setuptools, 5 pytestCheckHook, 6 pythonImportsCheckHook, 7 lib, 8}: 9buildPythonPackage rec { 10 pname = "essentials"; 11 version = "1.1.5"; 12 pyproject = true; 13 14 src = fetchFromGitHub { 15 owner = "Neoteroi"; 16 repo = "essentials"; 17 rev = "v${version}"; 18 hash = "sha256-WMHjBVkeSoQ4Naj1U7Bg9j2hcoErH1dx00BPKiom9T4="; 19 }; 20 21 nativeBuildInputs = [ setuptools ]; 22 23 nativeCheckInputs = [ pytestCheckHook ]; 24 25 pythonImportsCheck = [ "essentials" ]; 26 27 meta = with lib; { 28 homepage = "https://github.com/Neoteroi/essentials"; 29 description = "General purpose classes and functions"; 30 changelog = "https://github.com/Neoteroi/essentials/releases/v${version}"; 31 license = licenses.mit; 32 maintainers = with maintainers; [ 33 aldoborrero 34 zimbatm 35 ]; 36 }; 37}