mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 22:53:42 +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`.
30 lines
936 B
Nix
30 lines
936 B
Nix
{ stdenv, buildPythonPackage, fetchPypi
|
|
, mock, pytest, pytest-mock, pytest-server-fixtures, pytest-localserver
|
|
, termcolor, click, markdown2, six, jsonref, pyyaml, xmltodict, attrs
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "ramlfications";
|
|
version = "0.1.9";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "0xvnna7kaq4nm5nfnwcwbr5bcm2s532hgyp7kq4v9iivn48rrf3v";
|
|
};
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "A Python RAML parser.";
|
|
homepage = "https://ramlfications.readthedocs.org";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ nand0p ];
|
|
platforms = platforms.all;
|
|
};
|
|
|
|
doCheck = false;
|
|
# [darwin] AssertionError: Expected 'update_mime_types' to have been called once. Called 0 times.
|
|
|
|
buildInputs = [ mock pytest pytest-mock pytest-server-fixtures pytest-localserver ];
|
|
|
|
propagatedBuildInputs = [ termcolor click markdown2 six jsonref pyyaml xmltodict attrs ];
|
|
}
|