3
0
Fork 0
forked from mirrors/nixpkgs

pythonPackages.mongodict: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-25 22:06:50 -04:00 committed by Frederik Rietdijk
parent 942484324e
commit fc46fb16c1
2 changed files with 25 additions and 19 deletions

View file

@ -0,0 +1,24 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, pymongo
}:
buildPythonPackage rec {
pname = "mongodict";
version = "0.3.1";
src = fetchPypi {
inherit pname version;
sha256 = "0nv5amfs337m0gbxpjb0585s20rndqfc3mfrzq1iwgnds5gxcrlw";
};
propagatedBuildInputs = [ pymongo ];
meta = with stdenv.lib; {
description = "MongoDB-backed Python dict-like interface";
homepage = "https://github.com/turicas/mongodict/";
license = licenses.gpl3;
};
}

View file

@ -3259,25 +3259,7 @@ in {
pystemd = callPackage ../development/python-modules/pystemd { systemd = pkgs.systemd; };
mongodict = buildPythonPackage rec {
name = "mongodict-${version}";
version = "0.3.1";
src = pkgs.fetchurl {
url = "mirror://pypi/m/mongodict/${name}.tar.gz";
sha256 = "0nv5amfs337m0gbxpjb0585s20rndqfc3mfrzq1iwgnds5gxcrlw";
};
propagatedBuildInputs = with self; [
pymongo
];
meta = with stdenv.lib; {
description = "MongoDB-backed Python dict-like interface";
homepage = "https://github.com/turicas/mongodict/";
};
};
mongodict = callPackage ../development/python-modules/mongodict { };
repoze_who = buildPythonPackage rec {
name = "repoze.who-${version}";