1{
2 lib,
3 buildPythonPackage,
4 fetchpatch,
5 fetchPypi,
6
7 matplotlib,
8 numpy,
9
10 setuptools,
11}:
12
13buildPythonPackage rec {
14 pname = "july";
15 version = "0.1.3";
16 pyproject = true;
17
18 # No tags on GitHub
19 src = fetchPypi {
20 inherit pname version;
21 hash = "sha256-0xXCSSEKf2COJ9IHfuy+vpC/Zieg+q6TTabEFmUspCM=";
22 };
23
24 patches = [
25 # Fixes compatibility with current matplotlib versions
26 (fetchpatch {
27 url = "https://github.com/e-hulten/july/pull/44/commits/e5ff842bc98d3963c788737fff1b9086569b7d0a.patch";
28 hash = "sha256-zgeUkDWCfAebt1rgDZgMUVgQF81NWGrG2tmSj4/ncYA=";
29 })
30 ];
31
32 build-system = [
33 setuptools
34 ];
35
36 dependencies = [
37 matplotlib
38 numpy
39 ];
40
41 pythonImportsCheck = [ "july" ];
42
43 # No tests
44 doCheck = false;
45
46 meta = {
47 description = "Small library for creating pretty heatmaps of daily data";
48 homepage = "https://github.com/e-hulten/july";
49 license = lib.licenses.mit;
50 maintainers = with lib.maintainers; [ flokli ];
51 };
52}