Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / libraries / pystring / default.nix
blob3a1e64c0b00048c3e9f63869f19caea813d2652e
1 { stdenv, lib, fetchFromGitHub, fetchpatch, cmake }:
3 stdenv.mkDerivation rec {
4   pname = "pystring";
5   version = "1.1.3";
7   src = fetchFromGitHub {
8     owner = "imageworks";
9     repo = "pystring";
10     rev = "v${version}";
11     sha256 = "1w31pjiyshqgk6zd6m3ab3xfgb0ribi77r6fwrry2aw8w1adjknf";
12   };
14   patches = [
15     (fetchpatch {
16       name = "pystring-cmake-configuration.patch";
17       url = "https://github.com/imageworks/pystring/commit/4f653fc35421129eae8a2c424901ca7170059370.patch";
18       sha256 = "1hynzz76ff4vvmi6kwixsmjswkpyj6s4vv05d7nw0zscj4cdp8k3";
19     })
20   ];
22   nativeBuildInputs = [ cmake ];
24   doCheck = true;
26   meta = with lib; {
27     homepage = "https://github.com/imageworks/pystring/";
28     description = "A collection of C++ functions which match the interface and behavior of python's string class methods using std::string";
29     license = licenses.bsd3;
30     maintainers = [ maintainers.rytone ];
31     platforms = platforms.unix;
32   };