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`.
24 lines
616 B
Nix
24 lines
616 B
Nix
{ stdenv, fetchFromGitHub, buildPythonPackage, pytest }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "simanneal";
|
|
version = "0.4.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "perrygeo";
|
|
repo = "simanneal";
|
|
rev = version;
|
|
sha256 = "12499wvf7ii7cy8z2f1d472p7q9napg1lj0h9xx8l1mbr1hjlp3q";
|
|
};
|
|
|
|
checkInputs = [ pytest ];
|
|
checkPhase = "pytest tests";
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "A python implementation of the simulated annealing optimization technique";
|
|
homepage = https://github.com/perrygeo/simanneal;
|
|
license = licenses.isc;
|
|
maintainers = with maintainers; [ veprbl ];
|
|
};
|
|
}
|