1{ lib 2, buildPythonPackage 3, distro 4, fetchFromGitHub 5, pytestCheckHook 6, pythonOlder 7, setuptools-scm 8, setuptools-scm-git-archive 9}: 10 11buildPythonPackage rec { 12 pname = "ruyaml"; 13 version = "0.90.0.2"; 14 disabled = pythonOlder "3.6"; 15 16 src = fetchFromGitHub { 17 owner = "pycontribs"; 18 repo = pname; 19 rev = version; 20 sha256 = "0gxvwry7n1gczxkjzyfrr3fammllkvnnamja4yln8xrg3n1h89al"; 21 }; 22 23 nativeBuildInputs = [ 24 setuptools-scm 25 setuptools-scm-git-archive 26 ]; 27 28 SETUPTOOLS_SCM_PRETEND_VERSION = version; 29 30 propagatedBuildInputs = [ 31 distro 32 ]; 33 34 checkInputs = [ 35 pytestCheckHook 36 ]; 37 38 pythonImportsCheck = [ "ruyaml" ]; 39 40 meta = with lib; { 41 description = "YAML 1.2 loader/dumper package for Python"; 42 homepage = "https://ruyaml.readthedocs.io/"; 43 license = with licenses; [ mit ]; 44 maintainers = with maintainers; [ fab ]; 45 }; 46}