forked from mirrors/nixpkgs
ced21f5e1a
The `buildPython*` function computes name from `pname` and `version`. This change removes `name` attribute from all expressions in `pkgs/development/python-modules`. While at it, some other minor changes were made as well, such as replacing `fetchurl` calls with `fetchPypi`.
35 lines
656 B
Nix
35 lines
656 B
Nix
{ stdenv
|
|
, buildPythonPackage
|
|
, fetchgit
|
|
, isPy27
|
|
, unittest2
|
|
, cornice
|
|
, gunicorn
|
|
, pyramid
|
|
, requests
|
|
, simplejson
|
|
, sqlalchemy
|
|
, mozsvc
|
|
, tokenserver
|
|
, serversyncstorage
|
|
, configparser
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "syncserver";
|
|
version = "1.6.0";
|
|
disabled = ! isPy27;
|
|
|
|
src = fetchgit {
|
|
url = https://github.com/mozilla-services/syncserver.git;
|
|
rev = "refs/tags/${version}";
|
|
sha256 = "1fsiwihgq3z5b5kmssxxil5g2abfvsf6wfikzyvi4sy8hnym77mb";
|
|
};
|
|
|
|
buildInputs = [ unittest2 ];
|
|
propagatedBuildInputs = [
|
|
cornice gunicorn pyramid requests simplejson sqlalchemy mozsvc tokenserver
|
|
serversyncstorage configparser
|
|
];
|
|
}
|