nur-packages

My NUR packages
git clone git://git.sikmir.ru/nur-packages
Log | Files | Refs | README | LICENSE

default.nix (996B)


      1 { lib, fetchFromGitHub, python3Packages }:
      2 
      3 python3Packages.buildPythonApplication rec {
      4   pname = "mitzasql";
      5   version = "1.4.4";
      6 
      7   src = fetchFromGitHub {
      8     owner = "vladbalmos";
      9     repo = "mitzasql";
     10     rev = version;
     11     hash = "sha256-C/KecK8PJDn/MyUxtxFLjVnkra6pW9QoLY34FWkwQ+8=";
     12   };
     13 
     14   postPatch = ''
     15     substituteInPlace setup.py \
     16       --replace-fail "pygments ==2.7.4" "pygments" \
     17       --replace-fail "mysql-connector-python ==8.0.22" "mysql-connector-python" \
     18       --replace-fail "urwid ==2.1.2" "urwid" \
     19       --replace-fail "appdirs ==1.4.4" "appdirs"
     20   '';
     21 
     22   propagatedBuildInputs = with python3Packages; [ appdirs pygments mysql-connector urwid ];
     23 
     24   preBuild = ''
     25     export HOME=$TMPDIR
     26   '';
     27 
     28   doCheck = false; # MySQL server required
     29 
     30   meta = with lib; {
     31     description = "MySQL command line / text based interface client";
     32     homepage = "https://vladbalmos.github.io/mitzasql/";
     33     license = licenses.mit;
     34     maintainers = [ maintainers.sikmir ];
     35   };
     36 }