2018-10-17 07:02:39 +02:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pbr
|
|
|
|
, pythonix
|
|
|
|
, pythonAtLeast
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "nixpkgs";
|
2019-07-24 00:21:42 +02:00
|
|
|
version = "0.2.4";
|
2018-10-17 07:02:39 +02:00
|
|
|
disabled = ! pythonAtLeast "3.5";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-07-24 00:21:42 +02:00
|
|
|
sha256 = "0dlvq4bpamhlva86042wlc0xxfsxlpdgm2adfb1c6y3vjgbm0nvd";
|
2018-10-17 07:02:39 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ pbr ];
|
|
|
|
propagatedBuildInputs = [ pythonix ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Allows to `from nixpkgs import` stuff in interactive Python sessions";
|
2019-04-15 01:25:45 +02:00
|
|
|
homepage = https://github.com/t184256/nixpkgs-python-importer;
|
2018-10-17 07:02:39 +02:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ t184256 ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|