nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 flit-core,
6}:
7
8buildPythonPackage {
9 pname = "pylibjpeg-data";
10 version = "unstable-2024-03-28";
11 pyproject = true;
12
13 src = fetchFromGitHub {
14 owner = "pydicom";
15 repo = "pylibjpeg-data";
16 rev = "8253566715800a7fc3d4d949abab102c8172bca0";
17 hash = "sha256-TzhiZ4LCFZX75h3YRrEFO5kRVc5VwTOJd+1VFW3LsaQ=";
18 };
19
20 build-system = [ flit-core ];
21
22 doCheck = false; # no tests
23
24 pythonImportsCheck = [
25 "ljdata"
26 "ljdata.ds"
27 "ljdata.jpg"
28 ];
29
30 meta = {
31 description = "JPEG and DICOM data used for testing pylibjpeg";
32 homepage = "https://github.com/pydicom/pylibjpeg-data";
33 license = lib.licenses.mit;
34 maintainers = [ lib.maintainers.bcdarwin ];
35 };
36}