summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/ipynbname/default.nix
blob: 88022b4e56226c6d216c5ca0a4ae2b31c0f9515f (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
{
  lib,
  buildPythonPackage,
  fetchPypi,
  setuptools,
  ipykernel,
}:

buildPythonPackage rec {
  pname = "ipynbname";
  version = "2025.8.0.0";
  pyproject = true;

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-3Mg2fGTEqfC6pqzqPlCf1mlr9dgcmrzrOG4q1u/KyTU=";
  };

  build-system = [ setuptools ];

  dependencies = [ ipykernel ];

  pythonImportsCheck = [ "ipynbname" ];

  # upstream has no tests
  doCheck = false;

  meta = {
    description = "Simply returns either notebook filename or the full path to the notebook";
    homepage = "https://github.com/msm1089/ipynbname";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ dotlambda ];
  };
}