nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 37 lines 886 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5}: 6 7let 8 pname = "boilerpy3"; 9 version = "1.0.7"; 10in 11buildPythonPackage { 12 inherit pname version; 13 format = "setuptools"; 14 15 src = fetchFromGitHub { 16 owner = "jmriebold"; 17 repo = "BoilerPy3"; 18 tag = "v${version}"; 19 hash = "sha256-dhAB0VbBGsSrgYGUlZEYaKA6sQB/f9Bb3alsRuQ8opo="; 20 }; 21 22 postPatch = '' 23 # the version mangling in mautrix_signal/get_version.py interacts badly with pythonRelaxDepsHook 24 substituteInPlace setup.py \ 25 --replace '>=3.6.*' '>=3.6' 26 ''; 27 28 pythonImportsCheck = [ "boilerpy3" ]; 29 30 meta = { 31 homepage = "https://github.com/jmriebold/BoilerPy3"; 32 description = "Python port of Boilerpipe library"; 33 changelog = "https://github.com/jmriebold/BoilerPy3/releases/tag/v${version}"; 34 license = lib.licenses.asl20; 35 maintainers = with lib.maintainers; [ happysalada ]; 36 }; 37}