nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at r-updates 41 lines 924 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6}: 7 8buildPythonPackage rec { 9 pname = "exrex"; 10 version = "0.11.0"; 11 pyproject = true; 12 13 src = fetchFromGitHub { 14 owner = "asciimoo"; 15 repo = "exrex"; 16 # https://github.com/asciimoo/exrex/issues/68 17 rev = "239e4da37ff3a66d8b4b398d189299ae295594c3"; 18 hash = "sha256-Tn/XIIy2wnob+1FmP9bdD9+gHLQZDofF2c1FqOijKWA="; 19 }; 20 21 postPatch = '' 22 substituteInPlace setup.py \ 23 --replace "version=about['__version__']," "version='${version}'," 24 ''; 25 26 nativeBuildInputs = [ setuptools ]; 27 28 dontWrapPythonPrograms = true; 29 30 # Project thas no released tests 31 doCheck = false; 32 33 pythonImportsCheck = [ "exrex" ]; 34 35 meta = { 36 description = "Irregular methods on regular expressions"; 37 homepage = "https://github.com/asciimoo/exrex"; 38 license = with lib.licenses; [ agpl3Plus ]; 39 maintainers = with lib.maintainers; [ fab ]; 40 }; 41}