about summary refs log tree commit diff
path: root/pkgs/development/python-modules/ipynbname/default.nix
blob: 03a27ec19d8cc594309437c86f299590c3eda1e9 (plain) (blame)
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
{ lib
, buildPythonPackage
, fetchPypi
, ipykernel
}:

buildPythonPackage rec {
  pname = "ipynbname";
  version = "2023.2.0.0";
  format = "setuptools";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-Riu915VmJIdtxOqB+nkoRas4cOREyh9res2uo32Mnr8=";
  };

  propagatedBuildInputs = [
    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 ];
  };
}