Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09 634 B view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pythonOlder 5, aenum 6}: 7 8buildPythonPackage rec { 9 pname = "bytecode"; 10 version = "0.11.0"; 11 12 src = fetchFromGitHub { 13 owner = "vstinner"; 14 repo = pname; 15 rev = version; 16 sha256 = "097k83zr0z71pha7bafzhs4ink174wk9ls2883bic274rihsnc5r"; 17 }; 18 19 disabled = pythonOlder "3.5"; 20 21 propagatedBuildInputs = lib.optionals (pythonOlder "3.6") [ aenum ]; 22 23 meta = with lib; { 24 homepage = "https://github.com/vstinner/bytecode"; 25 description = "Python module to generate and modify bytecode"; 26 license = licenses.mit; 27 maintainers = with maintainers; [ raboof ]; 28 }; 29}