default.nix (954B)
1 { lib, stdenv, fetchFromGitHub, python3Packages }: 2 3 python3Packages.buildPythonApplication rec { 4 pname = "zdict"; 5 version = "3.8.2"; 6 7 src = fetchFromGitHub { 8 owner = "zdict"; 9 repo = pname; 10 rev = version; 11 hash = "sha256-H+VcqEtQWLC1qkhvjfMwQTnRZeQdF+buvt9OD6ooCXQ="; 12 }; 13 14 propagatedBuildInputs = with python3Packages; [ 15 beautifulsoup4 16 peewee 17 requests 18 setuptools 19 ]; 20 21 postPatch = "sed -i 's/==.*//' requirements.txt"; 22 23 buildPhase = '' 24 ${python3Packages.python.interpreter} setup.py build 25 ''; 26 27 doCheck = false; 28 29 installPhase = '' 30 ${python3Packages.python.interpreter} setup.py install --skip-build --prefix=$out 31 ''; 32 33 meta = with lib; { 34 description = "The last online dictionary framework you need"; 35 inherit (src.meta) homepage; 36 license = licenses.gpl3; 37 maintainers = [ maintainers.sikmir ]; 38 broken = stdenv.isDarwin; # https://github.com/NixOS/nixpkgs/issues/137678 39 }; 40 }