summary refs log tree commit diff
path: root/pkgs/development/python-modules/nixpkgs/default.nix
blob: 4edd31d6a25f64a9658c7adac44d8c2ecffb26ab (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
33
{ lib, stdenv
, buildPythonPackage
, fetchPypi
, pbr
, pythonix
, pythonAtLeast
}:

buildPythonPackage rec {
  pname = "nixpkgs";
  version = "0.2.4";
  disabled = ! pythonAtLeast "3.5";

  src = fetchPypi {
    inherit pname version;
    sha256 = "0dlvq4bpamhlva86042wlc0xxfsxlpdgm2adfb1c6y3vjgbm0nvd";
  };

  buildInputs = [ pbr ];
  propagatedBuildInputs = [ pythonix ];

  # does not have any tests
  doCheck = false;
  pythonImportsCheck = [ "nixpkgs" ];

  meta = with lib; {
    description = "Allows to `from nixpkgs import` stuff in interactive Python sessions";
    homepage = "https://github.com/t184256/nixpkgs-python-importer";
    license = licenses.mit;
    maintainers = with maintainers; [ t184256 ];
  };

}