Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 35 lines 679 B view raw
1{ lib 2, attrs 3, buildPythonPackage 4, fetchFromGitHub 5, hypothesis 6, pytestCheckHook 7}: 8 9buildPythonPackage rec { 10 pname = "cattrs"; 11 version = "1.1.2"; 12 13 src = fetchFromGitHub { 14 owner = "Tinche"; 15 repo = pname; 16 rev = "v${version}"; 17 sha256 = "083d5mi6x7qcl26wlvwwn7gsp5chxlxkh4rp3a41w8cfwwr3h6l8"; 18 }; 19 20 propagatedBuildInputs = [ attrs ]; 21 22 checkInputs = [ 23 hypothesis 24 pytestCheckHook 25 ]; 26 27 pythonImportsCheck = [ "cattr" ]; 28 29 meta = with lib; { 30 description = "Python custom class converters for attrs"; 31 homepage = "https://github.com/Tinche/cattrs"; 32 license = with licenses; [ mit ]; 33 maintainers = with maintainers; [ fab ]; 34 }; 35}