1{ lib 2, buildPythonPackage 3, fetchPypi 4, setuptools-scm 5# , backports 6, unittestCheckHook 7}: 8 9buildPythonPackage rec { 10 pname = "backports.weakref"; 11 version = "1.0.post1"; 12 src = fetchPypi { 13 inherit pname version; 14 sha256 = "bc4170a29915f8b22c9e7c4939701859650f2eb84184aee80da329ac0b9825c2"; 15 }; 16 17 buildInputs = [ setuptools-scm ]; 18# checkInputs = [ backports ]; 19 20 # Requires backports package 21 doCheck = false; 22 23 checkInputs = [ unittestCheckHook ]; 24 25 unittestFlagsArray = [ "tests" ]; 26 27 meta = with lib; { 28 description = "Backports of new features in Pythons weakref module"; 29 license = licenses.psfl; 30 maintainers = with maintainers; [ jyp ]; 31 }; 32}