4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
32 lines
920 B
Nix
32 lines
920 B
Nix
{ lib, stdenv, fetchurl, buildPythonPackage, isPy27, pep8, nose, unittest2, docutils
|
|
, blockdiag
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "seqdiag";
|
|
version = "2.0.0";
|
|
disabled = isPy27;
|
|
|
|
src = fetchurl {
|
|
url = "mirror://pypi/s/seqdiag/${pname}-${version}.tar.gz";
|
|
sha256 = "0k7j4f9j3d0325piwvbv90nfh0wzfk2n6s73s6h6nsxmqshcgswk";
|
|
};
|
|
|
|
buildInputs = [ pep8 nose unittest2 docutils ];
|
|
|
|
propagatedBuildInputs = [ blockdiag ];
|
|
|
|
# Tests fail:
|
|
# ...
|
|
# ERROR: Failure: OSError ([Errno 2] No such file or directory: '/tmp/nix-build-python2.7-seqdiag-0.9.0.drv-0/seqdiag-0.9.0/src/seqdiag/tests/diagrams/')
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
description = "Generate sequence-diagram image from spec-text file (similar to Graphviz)";
|
|
homepage = "http://blockdiag.com/";
|
|
license = licenses.asl20;
|
|
platforms = platforms.unix;
|
|
maintainers = with maintainers; [ bjornfor ];
|
|
};
|
|
}
|