1{ lib, buildPythonPackage, fetchFromGitHub, regex, requests, tqdm, numpy 2, toposort, tensorflow }: 3 4buildPythonPackage rec { 5 pname = "gpt-2-simple"; 6 version = "0.8.1"; 7 8 src = fetchFromGitHub { 9 owner = "minimaxir"; 10 repo = "gpt-2-simple"; 11 rev = "v${version}"; 12 hash = "sha256-WwD4sDcc28zXEOISJsq8e+rgaNrrgIy79Wa4J3E7Ovc="; 13 }; 14 15 propagatedBuildInputs = [ regex requests tqdm numpy toposort tensorflow ]; 16 17 dontCheck = true; # no tests in upstream 18 19 meta = with lib; { 20 description = 21 "Easily retrain OpenAI's GPT-2 text-generating model on new texts"; 22 homepage = "https://github.com/minimaxir/gpt-2-simple"; 23 license = licenses.mit; 24 maintainers = with maintainers; [ ckie ]; 25 }; 26}