nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 51 lines 952 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 6 # build-system 7 setuptools, 8 9 # dependencies 10 icalendar, 11 pandas, 12}: 13 14buildPythonPackage rec { 15 pname = "bokeh-sampledata"; 16 version = "2025.0"; 17 pyproject = true; 18 19 src = fetchFromGitHub { 20 owner = "bokeh"; 21 repo = "bokeh_sampledata"; 22 tag = version; 23 hash = "sha256-gAiiNm9t+4z0aFO6pr8FfYGF04pO7u6Wjsbou+I2blk="; 24 }; 25 26 postPatch = '' 27 substituteInPlace pyproject.toml \ 28 --replace-fail ', "setuptools-git-versioning"' "" \ 29 --replace-fail 'dynamic = ["version"]' 'version = "${version}"' 30 ''; 31 32 build-system = [ 33 setuptools 34 ]; 35 36 dependencies = [ 37 icalendar 38 pandas 39 ]; 40 41 pythonImportsCheck = [ 42 "bokeh_sampledata" 43 ]; 44 45 meta = { 46 description = "Sample datasets for Bokeh examples"; 47 homepage = "https://pypi.org/project/bokeh-sampledata"; 48 license = lib.licenses.bsd3; 49 maintainers = with lib.maintainers; [ doronbehar ]; 50 }; 51}