mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 05:04:00 +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`.
21 lines
582 B
Nix
21 lines
582 B
Nix
{ stdenv, fetchPypi, buildPythonPackage, nose }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pytimeparse";
|
|
version = "1.1.8";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "e86136477be924d7e670646a98561957e8ca7308d44841e21f5ddea757556a0a";
|
|
};
|
|
|
|
propagatedBuildInputs = [ nose ];
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "A small Python library to parse various kinds of time expressions";
|
|
homepage = "https://github.com/wroberts/pytimeparse";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ vrthra ];
|
|
};
|
|
}
|