Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchPypi 4, pytest 5, pyyaml 6, hypothesis 7, pythonOlder 8}: 9 10buildPythonPackage rec { 11 pname = "yamlloader"; 12 version = "1.2.2"; 13 format = "setuptools"; 14 15 disabled = pythonOlder "3.6"; 16 17 src = fetchPypi { 18 inherit pname version; 19 hash = "sha256-NWaf17n4xrONuGGlFwFULEJnK0boq2MlNIaoy4N3toc="; 20 }; 21 22 propagatedBuildInputs = [ 23 pyyaml 24 ]; 25 26 nativeCheckInputs = [ 27 hypothesis 28 pytest 29 ]; 30 31 pythonImportsCheck = [ 32 "yaml" 33 "yamlloader" 34 ]; 35 36 meta = with lib; { 37 description = "A case-insensitive list for Python"; 38 homepage = "https://github.com/Phynix/yamlloader"; 39 license = licenses.mit; 40 maintainers = with maintainers; [ freezeboy ]; 41 }; 42}