nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at r-updates 51 lines 1.1 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 poetry-core, 6 loguru, 7 python-dateutil, 8 pyyaml, 9 tqdm, 10 click, 11}: 12 13buildPythonPackage rec { 14 pname = "bubop"; 15 version = "0.2.3"; 16 pyproject = true; 17 18 src = fetchFromGitHub { 19 owner = "bergercookie"; 20 repo = "bubop"; 21 tag = "v${version}"; 22 hash = "sha256-NXA3UDOkCoj4dm3UO/X0w2Mpx4bw3yFO6oyOzsPgtrU="; 23 }; 24 25 postPatch = '' 26 # Those versions seems to work with `bubop`. 27 substituteInPlace pyproject.toml \ 28 --replace-fail 'loguru = "^0.5.3"' 'loguru = "^0.7"' \ 29 --replace-fail 'PyYAML = "~5.3.1"' 'PyYAML = "^6.0"' 30 ''; 31 32 nativeBuildInputs = [ poetry-core ]; 33 34 propagatedBuildInputs = [ 35 loguru 36 python-dateutil 37 pyyaml 38 tqdm 39 click 40 ]; 41 42 pythonImportsCheck = [ "bubop" ]; 43 44 meta = { 45 description = "Bergercookie's Useful Bits Of Python; helper libraries for Bergercookie's programs"; 46 homepage = "https://github.com/bergercookie/bubop"; 47 changelog = "https://github.com/bergercookie/bubop/blob/${src.tag}/CHANGELOG.md"; 48 license = lib.licenses.mit; 49 maintainers = with lib.maintainers; [ raitobezarius ]; 50 }; 51}