nur-packages

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

default.nix (1010B)


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