-
Notifications
You must be signed in to change notification settings - Fork 3
/
flake.nix
47 lines (47 loc) · 1.4 KB
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
{
description = "Miniconf";
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
outputs =
{ self, nixpkgs }:
let
pkgs = import nixpkgs { system = "x86_64-linux"; };
aiomqtt22 = pkgs.python3Packages.aiomqtt.overrideAttrs rec {
version = "2.2.0";
src = pkgs.fetchFromGitHub {
owner = "sbtinstruments";
repo = "aiomqtt";
rev = "refs/tags/v${version}";
hash = "sha256-Sn9wGN93g61tPxuUZbGuElBXqnMEzJilfl3uvnKdIG0=";
};
propagatedBuildInputs = [
pkgs.python3Packages.paho-mqtt_2
pkgs.python3Packages.typing-extensions
];
};
miniconf-mqtt-py = pkgs.python3Packages.buildPythonPackage {
pname = "miniconf";
version = "0.16.0";
src = self + "/py/miniconf-mqtt";
format = "pyproject";
buildInputs = [
pkgs.python3Packages.setuptools
];
propagatedBuildInputs = [
# pkgs.python3Packages.aiomqtt
aiomqtt22
pkgs.python3Packages.typing-extensions
];
# checkPhase = "python -m miniconf";
};
in
{
packages.x86_64-linux = {
inherit miniconf-mqtt-py aiomqtt22;
default = miniconf-mqtt-py;
};
devShells.x86_64-linux.default = pkgs.mkShellNoCC {
name = "miniconf-dev-shell";
packages = [ miniconf-mqtt-py ];
};
};
}