mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 10:56:56 +00:00
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`.
32 lines
609 B
Nix
32 lines
609 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pytest
|
|
, six
|
|
, numpy
|
|
, traitlets
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "numtraits";
|
|
version = "0.2";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "2fca9a6c9334f7358ef1a3e2e64ccaa6a479fc99fc096910e0d5fbe8edcdfd7e";
|
|
};
|
|
|
|
checkInputs = [ pytest ];
|
|
propagatedBuildInputs = [ six numpy traitlets];
|
|
|
|
checkPhase = ''
|
|
py.test
|
|
'';
|
|
|
|
meta = {
|
|
description = "Numerical traits for Python objects";
|
|
license = lib.licenses.bsd2;
|
|
maintainers = with lib.maintainers; [ fridh ];
|
|
homepage = https://github.com/astrofrog/numtraits;
|
|
};
|
|
} |