summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/eseries/default.nix
blob: 2db32b229bb8eba3e4c6ba9e9e6b8423df4c5a92 (plain)
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
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  docopt-subcommands,
  future,
  pytestCheckHook,
  hypothesis,
}:

buildPythonPackage {
  pname = "eseries";
  version = "1.2.1-unstable-2023-12-17";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "rob-smallshire";
    repo = "eseries";
    rev = "3becd72de8b1b533b4a637169022231271a934fb"; # no tags
    hash = "sha256-iQBh4L+t24pOBh86wEqu5e6/RUmTQdCX+rOV/H2ywaY=";
  };

  build-system = [ setuptools ];

  dependencies = [
    docopt-subcommands
    future
  ];

  pythonImportsCheck = [ "eseries" ];

  nativeCheckInputs = [
    pytestCheckHook
    hypothesis
  ];

  meta = {
    description = "Find value in the E-series used for electronic components values";
    homepage = "https://github.com/rob-smallshire/eseries";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ sigmanificient ];
    mainProgram = "eseries";
  };
}